Problem with nosetests : some tests are "not started"
已回答
Hello,
i'm on a project that runs a lot of tests using nosetests. I've created a test configuration that just add params:
--processes=-1
which allows to run nosetests on multiple core. It works well (takes around 16 seconds to execute instead of around 1 minute without the option) but it stops before it completes all tests:
Failed to start: X passed, Y not started
I'm using Pycharm 2016.3.1 in Ubuntu 16.04
请先登录再写评论。
Can you try running nose outside of PyCharm, using the --processes to see if it works correctly from the command line?
Hi Paul,
I ran the same command than the one in PyCharm in command line:
/home/<user>/<path to project>/virtualenv/bin/python /home/<user>/pycharm-2016.3.1/helpers/pycharm/noserunner.py /home/<user>/<path to project>/ --processes=-1
It runs all the tests:
----------------------------------------------------------------------
Ran 1757 tests in 18.187s
OK
Here is a sample of the output it produces:
##teamcity[testStarted name='<test_name>' locationHint='python_nosetestid://<test location>']
.
##teamcity[testFinished duration='87' name='<test_name> ']
##teamcity[testStarted name='<test_name> ' locationHint='python_nosetestid://<test location>']
.
##teamcity[testFinished duration='87' name='<test_name> ']
##teamcity[testStarted name='<test_name> ' locationHint='python_nosetestid://<test location>']
.
##teamcity[testFinished duration='94' name='<test_name> ']
........................
Thanks for your reply.
I suspect this issue matches your report. Can you go vote on that ticket, perhaps comment to capture the good debugging (no pun intended) that you did here?
I have the same problem.