Code

Opened 4 years ago

Closed 4 years ago

#12624 closed (fixed)

Modify test runners to be a class-based structure

Reported by: russellm 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: UI/UX:

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 russellm 4 years ago.
First draft at class-based test runners.

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by russellm

First draft at class-based test runners.

comment:1 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.