...
Anchor | ||||
---|---|---|---|---|
|
Short Answer
This helpful utility will tell you the minimal tags that represent all tests in a given file(s):
Code Block | ||
---|---|---|
| ||
cd src/tests/ftest/
./tags.py list pool/create.py
PoolCreateTests |
Long Answer
Each test is uniquely tagged with its method name and the test class it belongs to.
We are in the process of using each test’s method name as the unique tag to run that test. This tag will be on the last line of the Avocado tags. For example, from ftest/pool/create.py, the :
test_create_max_pool
will run onlytest_create_max_pool
...
test_create_no_space_loop
will run only
...
test_create_no_space_loop
PoolCreateTests
will run all tests in this class (there is usually one class per file, but in rare cases there are multiple classes per file)
Code Block | ||
---|---|---|
| ||
def test_create_max_pool(self): """ :avocado: tags=all,daily_regression :avocado: tags=hw,medium :avocado: tags=pool :avocado: tags=PoolCreateTests,test_create_max_pool """ def test_create_no_space_loop(self): """ :avocado: tags=all,pr,daily_regression :avocado: tags=hw,medium :avocado: tags=pool :avocado: tags=PoolCreateTests,test_create_no_space_loop """ |