It's not possible to run a specific test if it's not in models.py or tests.py (e.g. when using suites)
|Reported by:||dolapo||Owned by:||dolapo|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Description (last modified by ramiro)
The simple django test runner looks for tests in either models.py or tests.py. This is unfortunate for large applications since tests.py in each app becomes rather large and unwieldy. Apps with a large number of tests can break out their tests further by creating a method called suite() that returns a TestSuite. This works for test separation but because the runner still looks for test cases in models.py or tests.py it is no longer possible to run an individual TestCase or TestCase.test_method .
In addition to supporting the ability to specify tests to run as:
I'm including a patch which adds this functionality.
Change History (7)
Changed 6 years ago by dolapo
comment:1 Changed 6 years ago by dolapo
- Owner changed from nobody to dolapo
- Status changed from new to assigned