Opened 17 years ago
Last modified 15 years ago
#6364 closed
Allow fine grained tests for doctests (allow splitting into many files) — at Initial Version
Reported by: | David Larlet | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Keywords: | testing | |
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 |
Easy pickings: | no | UI/UX: | no |
Description
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.
Note:
See TracTickets
for help on using tickets.