...
Code Block |
---|
|
def test_evictcreate_max_pool(self):
"""
:avocado: tags=all,pr,daily_regression # when to run - see frequency tags below
:avocado: tags=vmhw,medium # where to run - see stage/environment tags below
:avocado: tags=pool,pool_evict # features - see feature tags below
:avocado: tags=pool_evict_basic # specific test tag(s) for this test or tests in the same file
PoolCreateTests,test_create_max_pool # test class and unique test method tags
""" |
How Does Avocado Handle Sets of Tags?
...
Anchor |
---|
| Specific-Test-Tags |
---|
| Specific-Test-Tags |
---|
|
Finding Specific Test Tags
Each test has a unique tag that can be used to run only that test. When there is need to run a specific test, the tag must be looked up in the corresponding ftest/<dir>/<test_file>.py
. Unique test tags are usually 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/evictcreate.py, the pooltest_create_evictmax_basicpool
tag will run only this test:
Code Block |
---|
|
def test_evictcreate_max_pool(self):
"""...
:avocado: tags=all,pr,daily_regression
:avocado: tags=vmhw,medium
:avocado: tags=pool,pool_evict
:avocado: tags=pool_evict_basic
PoolCreateTests,test_create_max_pool
""" |