문제

With Django's normal test runner, you can drill down to run tests in a specific app, a specific subclass of TestCase, or a specific test within a specific subclass of TestCase.

E.g.:

./manage.py test myapp.MyTestCase.test_something

However, django-nose doesn't appear to support anything beyond testing a specific app. How do I replicate the last two behaviors?

도움이 되었습니까?

해결책

Nose supports the following syntax (note : between test script name and test class name):

./manage.py test myapp.tests.test_script:MyTestCase.test_method

다른 팁

The correct answer is ./manage.py test myapp/tests/test_script:MyTestCase.test_method.

Using dots in the relative path did not work for me, but slashes did.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top