nose-devs / nose

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

python3 -nose keeps silent forever - until you run specific test first #1077

Open Casyfill opened 6 years ago

Casyfill commented 6 years ago

I am using nose to run tests on my package, including running in CI (CircleCI, specifically). It was fun and great until suddenly last week tests start to fail due to the timeout on testing virtual machine (Ubuntu).

Being able to debug via ssh, I could run the very same command (params don't really change anything

python3 -m nose  --nocapture  --with-coverage --cover-erase --cover-package=SERJ  --cover-html --cover-html-dir=$CIRCLE_ARTIFACTS/coverage --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/report.xm

and indeed code kept silent forever. However, if I ran any specific test first, say python3 -m nose tests/test_report.py, it will not only work by itself, the very first command will result in the correct test passing.

I realize I didn't provide any reproducible example, and right now I am just running this specific test first, so problem kinda solved, but wonder if someone have any idea on this behaviour