为什么我在运行 django-nose 测试时必须使用 --exe 参数。如果我不使用它,它将跳过测试运行
例如
manage.py test myapp
Ran 0 tests in 0.000s
而我的测试在正确的地方等。
以详细程度 3 运行它显示:
nosetests --verbosity 3 myapp
它显示:(更改了路径名称,但无论如何,鼻子找到它们但跳过它们!!)
nose.selector: INFO: /path_to_project/path_to_app/myapp/tests.pyc is executable; skipped
nose.selector: INFO: /path_to_project/path_to_app/myapp/tests.py~ is executable; skipped
运行测试的唯一方法是使用 --exe 参数
我在用:
- Ubuntu(10.4 或 11.4 都无所谓)
- Python 2.6 和 2.7
- Django 1.4.3
这是为什么?
根据你不需要的文件--exe
但经过一段时间的困惑......并谷歌搜索并查看这里,我得到了这个建议。
但是对于这种似乎是错误的解决方法的解释无处可寻?
还是我错过了什么?
我提出这个要求,因为其他问题都很老了,没有找到令人满意的答案......