简体   繁体   English

鼻子测试未找到对cygwin的测试

[英]nosetest not finding tests on cygwin

I have a set of unit tests files created in python with unittest as the import. 我有一组在python中创建的单元测试文件,其中unittest作为导入。 Running nosetests on both the terminal of MacOSX and on the cmd.exe of Windows 7, it finds the tests and runs them. 在MacOSX终端和Windows 7的cmd.exe上运行鼻子测试,它会找到测试并运行它们。

Trying to execute nosetests under Cygwin does not find any tests to run. 尝试在Cygwin下执行鼻子测试不会找到任何要运行的测试。

All three cases use the same version of Python (3.4) and the same version of nose(1.3.6). 这三种情况都使用相同版本的Python(3.4)和相同版本的鼻子(1.3.6)。 Also, none of the files are marked as executable 此外,所有文件均未标记为可执行文件

I suspect that is something environmental on cygwin. 我怀疑这对Cygwin来说是环境问题。 Does anyone know that do I need to do? 有人知道我需要做吗?

如果只有一个包含测试的文件,则可以像这样启动它: nosetests tests.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM