Megatest

View Ticket
Login
Ticket Hash: 5076ec4e7b3d15eaac092f66faed9b3bd50ae0d0
Title: Need pre and post test support
Status: Open Type: Feature_Request
Severity: Important Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2022-12-07 16:39:44
Version Found In:
User Comments:
matt added on 2022-12-07 22:22:34:

Need to be able to mark a test as "run before" or "run after" a run.


matt added on 2022-12-07 22:34:53:
Add: 

"waiton !end_of_tests", in which the test becomes dependent on the end of all other test runs.

Megatest should collect this test like any other test, but would always make sure that any such test would be placed after all other tests

matt added on 2022-12-07 23:39:44:
If the test has other dependencies they can also be listed in waiton,
so for example:

testA: waiton !end_of_tests
testB: waiton testA !end_of_tests

From a DAG perspective, it would look something like:

...---[!end_of_tests]--[testA]--[testB]

The "!end_of_tests" is effectively a "virtual" (not actual) test definition
that only Megatest knows about and always successfully runs.