Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Avocado uses commas and spaces to specify sets of tests. For example:

  1. pr,ior - All tests tagged with both pr and ior

  2. pr ior - All tests tagged with pr, plus all tests tagged with ior

  3. pr,ior pr,mdtest - All tests tagged with both pr and ior, plus all tests tagged with both pr and mdtest

Avocado uses a hyphen to mean “not”. For example:

  1. pr,-ior - All tests tagged with pr but not ior

  2. pr,-ior,-mdtest - All tests tagged with pr but not ior or mdtest

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:

  1. Features - recommended - Runs the default set of tags (pr), plus the tags specified.

    1. Features: checksum - Equivalent to Test-tag: pr checksum

  2. Test-tag - advanced - Runs only the tags specified.

    1. Test-tag: pr checksum - Runs pr tests and checksum tests.

    2. Test-tag: checksum - Runs only checksum tests.

Info

pr tests are almost always required to pass for a PR to be merged. The Features tag should be used in most cases.

...