nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 395 forks source link

Using collect-only and verbose wipes out failed tests list #1064

Open jontwo opened 6 years ago

jontwo commented 6 years ago

So, I run some tests:

nosetests test --with-id -I system_test
...
Ran 117 tests in 608.830s
FAILED (SKIP=5, errors=5, failures=3)

There is a lot of output, so I try to get just the names of the failed tests:

nosetests test --failed --collect-only
...
Ran 8 tests in 0.004s                                     

Oops, forgot verbose flag:

nosetests test --failed --collect-only -v
...
Ran 303 tests in 0.317s          

This is a list of all the tests, not just the failed ones. Rerunning without verbose:

nosetests test --failed --collect-only
...
Ran 303 tests in 0.050s

Still getting all tests, so I have to run --with-id again.