[Django]-Invoking django tests in subdirectories

6πŸ‘

βœ…

This is because Django expects the arguments to test command to be of the format:

app_label[.TestCase[.test_method]]

There is no way of doing this with the stock test runner (see, Carl Meyers comment). If everything goes well, this should be fixed in Django 1.5, but in the meantime you can use an alternate runner which accepts full module paths: django-discovery-runner.

πŸ‘€lqc

3πŸ‘

django-discover-runner has been made part of Django 1.6.. πŸ™‚

For Version <1.6 , it can be used as a third party app.

πŸ‘€Sahil kalra

Leave a comment