6

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

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

Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366

1 Answers1

6

Constructor of TextTestRunner class has failfast parameter which is not shown in the constructor's documentation.

UPDATE

I raised bug 17871 and it's fixed now what you can verify at http://docs.python.org/3.3/library/unittest.html#unittest.TextTestRunner

Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366