Allow test runner to execute individual doctests
|Reported by:||David Larlet||Owned by:||nobody|
|Cc:||Russell Keith-Magee, Dan Fairs, Robin, David Larlet||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||yes|
Description (last modified by )
For the moment, you can specify a test case or even a single test method in this test case but you can't use more than one doctest file easily and run tests file by file for instance.
The attached patch allow you to run doctests from your tests/ directory one by one:
python manage.py test app.doctest_filename_without_extension
Or all at once:
python manage.py test app
You just need doctests files with ".txt" extension. Comments are welcome.
Update: doctests can already be split across files using __tests__. However, the ability to execute tests on a fine grained level would be useful.
Change History (14)
comment:2 Changed 9 years ago by
|Triage Stage:||Unreviewed → Ready for checkin|
comment:4 Changed 9 years ago by
|Cc:||Russell Keith-Magee added|
|Triage Stage:||Ready for checkin → Design decision needed|
comment:5 Changed 9 years ago by
|Patch needs improvement:||set|
|Summary:||Allow fine grained tests for doctests (allow splitting into many files) → Allow test runner to execute individual doctests|
|Triage Stage:||Design decision needed → Accepted|