Merge pull request #16707 from jamessan/filter-out-tests

test: allow excluding functional/unti tests using TEST_FILTER_OUT
This commit is contained in:
James McCoy
2021-12-18 13:01:38 -05:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ Filtering Tests
### Filter by name
Another filter method is by setting a pattern of test name to `TEST_FILTER`.
Another filter method is by setting a pattern of test name to `TEST_FILTER` or `TEST_FILTER_OUT`.
``` lua
it('foo api',function()
@@ -131,6 +131,10 @@ To run only test with filter name:
TEST_FILTER='foo.*api' make functionaltest
To run all tests except ones matching a filter:
TEST_FILTER_OUT='foo.*api' make functionaltest
### Filter by file
To run a *specific* unit test: