Opened 8 years ago
Closed 6 years ago
#28520 closed New feature (fixed)
Add --start-at/after options to runtests.py
Description ¶
When making changes that affect large parts of Django, there can often be a lot of test failures. I commonly use the --failfast
option to tackle these one at a time. After encountering a test failure, I want to do one of two things:
- Fix the error and test again.
- Skip the error and look for the next one.
In both cases you often have to rerun a large part of the test suite of which you are fairly certain it passes, which can take a lot of time. In the second case you either have to remove --failfast
and manually check for errors, or mark the test as an expected failure or skipped test.
I propose to add two options to Django's internal test suite, --start-at
and --start-after
. Both allow you to specify a top-level module where the test suite should start running tests. --start-at
includes the specified module, --start-after
excludes it.
Change History (8)
comment:1 by , 8 years ago
Has patch: | set |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 7 years ago
Component: | Uncategorized → Core (Other) |
---|---|
Needs documentation: | set |
Triage Stage: | Unreviewed → Accepted |
A note in docs/internals/contributing/writing-code/unit-tests.txt
would be useful.
comment:3 by , 6 years ago
Needs documentation: | unset |
---|---|
Owner: | changed from | to
comment:4 by , 6 years ago
Patch needs improvement: | set |
---|
comment:5 by , 6 years ago
Patch needs improvement: | unset |
---|
comment:6 by , 6 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
PR