Задать вопрос

Тел: +7 965 3737 888





Stop tests at the first failure

<p><strong>Note</strong>: The --failfast argument in Django since version 1.2 does this. Use this snippet for earlier versions.
<p>If a large number of your unit tests get "out of sync", it's often annoying to scan through a large number of test failures which overflow the terminal window's scroll buffer.
<p>This library strictly stops after the first failure in a doctest suite. If you're testing multiple applications, it also stops after the first test suite with failures in it. So effectively you'll get one failure at a time.
<p>This code has been tested with doctests only so far. You can also fetch the latest source from <a href="http://trac.ambitone.com/ambidjangolib/browser/trunk/test/">my repository</a>.

Вопрос полезен? Да0/Нет0