aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-12-18 13:01:38 -0500
committerGitHub <noreply@github.com>2021-12-18 13:01:38 -0500
commit2202400f15caaa375749a8974aaa922536d73a0c (patch)
tree01d97d36c6be6b53abfd18239615576b322b31e6 /test
parenteceb0b305e7358e411df7f0f2040e8ed702f631b (diff)
parent267ec67fabe94715853dab22593f6dde47ab3dd5 (diff)
downloadrneovim-2202400f15caaa375749a8974aaa922536d73a0c.tar.gz
rneovim-2202400f15caaa375749a8974aaa922536d73a0c.tar.bz2
rneovim-2202400f15caaa375749a8974aaa922536d73a0c.zip
Merge pull request #16707 from jamessan/filter-out-tests
test: allow excluding functional/unti tests using TEST_FILTER_OUT
Diffstat (limited to 'test')
-rw-r--r--test/README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/README.md b/test/README.md
index 37aa54c157..c6e173ead2 100644
--- a/test/README.md
+++ b/test/README.md
@@ -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: