Opened 14 years ago

Closed 14 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)

t12624-r12231.1.diff (16.6 KB ) - added by Russell Keith-Magee 14 years ago.
First draft at class-based test runners.

Download all attachments as: .zip

Change History (2)

by Russell Keith-Magee, 14 years ago

Attachment: t12624-r12231.1.diff added

First draft at class-based test runners.

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

(In [12255]) Fixed #12624 -- Modified test runners to be class based.

Note: See TracTickets for help on using tickets.
Back to Top