...
Avocado uses commas and spaces to specify sets of tests. For example:
pr,ior
- All tests tagged with bothpr
andior
pr ior
- All tests tagged withpr
, plus all tests tagged withior
pr,ior pr,mdtest
- All tests tagged with bothpr
andior
, plus all tests tagged with bothpr
andmdtest
Avocado uses a hyphen to mean “not”. For example:
pr,-ior
- All tests tagged withpr
but notior
pr,-ior,-mdtest
- All tests tagged withpr
but notior
ormdtest
More information about Avocado tag filtering can be found here.
...
The /wiki/spaces/CI/pages/1389759093 specify which tests are run for a PR. By default, all tests tagged with pr
are ran. I.e. Test-tag: pr
. To run specific tests, you should first identify which tags you need. See Feature Tags for a list of common tags. To run a specific test case, you will need to find its tag in the test file. There are two pragmas to specify which tags to run:
Features
- recommended - Runs the default set of tags (pr
), plus the tags specified.Features: checksum
- Equivalent toTest-tag: pr checksum
Test-tag
- advanced - Runs only the tags specified.Test-tag: pr checksum
- Runspr
tests andchecksum
tests.Test-tag: checksum
- Runs onlychecksum
tests.
Info |
---|
|
...