mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
Merge pull request #16707 from jamessan/filter-out-tests
test: allow excluding functional/unti tests using TEST_FILTER_OUT
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user