U:\>nosetests -V
nosetests version 1.3.7
U:\>python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
I have a simple python test to check whether or not a number is even in test_even.py.
Re-ran the failed tests only using --failed option.
However, --failed is supposed to run the previously failed tests
--failed Run the tests that failed in the last test run.
Whereas, in the above case, it runs all the tests again.
C:\Python3\NOSE_Tests>nosetests test_even.py --failed -v
#1 test_even.test_even1 ... ok
#2 test_even.test_even2 ... ok
#3 test_even.test_even3 ... ok
#4 test_even.test_even4 ... ok
----------------------------------------------------------------------
Ran 4 tests in 0.005s
OK
Observation :-
--failed is not serving what it is expected to i.e. to re-run the tests that are failed from previous run.
Rather runs all the tests in the module. which questions the existence of --failed option.
I have a simple python test to check whether or not a number is even in test_even.py.
I ran the above tests. ( expected 2 failures for
test_even1
andtest_even3
).Now I modified the failure tests
test_even1
andtest_even3
as follows :-Re-ran the failed tests only using
--failed
option. However,--failed
is supposed to run the previously failed testsWhereas, in the above case, it runs all the tests again.
Observation :-
--failed
is not serving what it is expected to i.e. to re-run the tests that are failed from previous run. Rather runs all the tests in the module. which questions the existence of--failed
option.