Nose unable to find tests in ubuntu

前端 未结 7 764
囚心锁ツ
囚心锁ツ 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:32

    The other thing which always gets me with nose is that it won't run tests in executable files. I'm not exactly sure why that would make a difference across Mac/Ubuntu, but it's worth a shot.

    Make sure that the scripts didn't somehow get chmod +x'd on the Mac… And if they did, fix them with chmod -x $(find tests/ -name '*.py').

提交回复
热议问题