Opened 16 years ago
Closed 16 years ago
#12624 closed (fixed)
Modify test runners to be a class-based structure
| Reported by: | Russell Keith-Magee | Owned by: | nobody |
|---|---|---|---|
| Component: | Testing framework | Version: | 1.1 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When test runners were originally introduced, the run_tests() method was fairly simple, so users who needed custom test execution behavior didn't have a major hurdle to overcome.
However, over time, the test runner has become more complex, in order to support more complex features. "Just write a custom test runner" isn't as easy as it once was.
This is especially problematic for someone that wants a relatively simple change - e.g., enabling DEBUG during testing, or using a different test discovery method, or using a different TestRunner class to execute the suite.
The test runner should be a class with overridable functions, rather than a single function.
Attachments (1)
Change History (2)
by , 16 years ago
| Attachment: | t12624-r12231.1.diff added |
|---|
comment:1 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
First draft at class-based test runners.