nose-devs / nose

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

Run nose for a single test from project root folder #1093

Open xulongwu4 opened 5 years ago

xulongwu4 commented 5 years ago

I tried to run nose from my project root folder: nosetests a/b/c.py:dd.test_e

I expect nose to only run the single test dd.test_e defined in c.py. However, nose does not stop after running this test. It keeps going and working on some other things (I didn't let it finish since it takes too much resource of my computer).

If I change directory before running the tests:

cd a/b
nosetests c.py:dd.test_e

nose stops after running dd.test_e.