[TIP] resume an interrupted pytest test run

Wouter Overmeire lodagro at gmail.com
Wed Jan 24 06:05:05 PST 2018


How can I resume an interrupted pytest test run?

Suppose using command line arguments I select a number of tests to be run
by pytest. The tests take a while and in the middle of the run there is an
issue (for example a power outage) and pytest was stopped. Is it possible
to resume an interrupted run?

The idea is not to rerun the failed tests, but to run only those tests that
did not run in the first run.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20180124/9cd301e3/attachment.html>

More information about the testing-in-python mailing list