-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
There is a general mechanism used by Allure adapters to run tests selectively. It uses a test plan - a .json file with the following schema:
{
"type": "object",
"properties": {
"tests": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"selector": { "type": "string" }
}
}
}
}
}A path to a test plan is provided as a value of the ALLURE_TESTPLAN_PATH environment variable.
If a valid test plan file is provided, only matched tests should be run. A test is matched if there is at least one entry in the tests array, such that:
- If the
idproperty is present in the entry AND the test has an Allure ID (added via theallure_idoras_idlabel), theidproperty must be the same as the Allure ID of the test, OR - If the
selectorproperty is present in the entry, it must be the same as the test'sfullName.
Motivation
Test plan support allows selective runs from TMS (e.g., TestOps). Ideally, the mechanism should be supported by all Allure adapters.
Metadata
Metadata
Assignees
Labels
No labels