Nose unable to find tests in ubuntu

前端 未结 7 763
囚心锁ツ
囚心锁ツ 2020-12-02 12:44

Is there any reason why Nose wouldn\'t be able to find tests in Ubuntu 9.04?

I\'m using nose 0.11.1 with python 2.5.4.
I can run tests only if I explicitly spec

7条回答
  •  [愿得一人]
    2020-12-02 13:37

    I had the same problem. My tests ran just fine in Windows, but not in Ubuntu.

    In Ubuntu, if you run:

    nosetests -vv --collect-only
    

    You'll probably see that it's skipping your test file because it's an executable: _Tools/LintControlFiles/test_HgLint.py is executable; skipped

    In order to get nose to consider executables, run it like this:

    nosetests --exe
    

提交回复
热议问题