How to use TextTestRunner class from Unittest Python module in failfast mode?

All I found in the unittest module unittest , a description of the TextTestRunner constructor TextTestRunner and the following code sample using its run() method: unittest.TextTestRunner(verbosity=2).run(suite)

I would like to know how I can use TextTestRunner in failfast mode.

+6
source share
1 answer

The constructor of the TextTestRunner class has a failfast parameter that is not shown in the constructor documentation.

UPDATE

I raised error 17871 and now fixed what you can check at http://docs.python.org/3.3/library/unittest.html#unittest.TextTestRunner

+6
source

Source: https://habr.com/ru/post/901131/


All Articles