From 6d803cba5dd9cd343595d1fc14e033f122f3ac85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Thu, 25 Feb 2021 15:54:14 +0100 Subject: [PATCH] Add example of negated tag selection to the CLI test spec docs Close #2180 --- docs/command-line.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/command-line.md b/docs/command-line.md index a14acf7f..dd4fe8fe 100644 --- a/docs/command-line.md +++ b/docs/command-line.md @@ -93,7 +93,8 @@ Inclusions and exclusions are evaluated in left-to-right order. Test case examples: -
thisTestOnly            Matches the test case called, 'thisTestOnly'
+```
+thisTestOnly            Matches the test case called, 'thisTestOnly'
 "this test only"        Matches the test case called, 'this test only'
 these*                  Matches all cases starting with 'these'
 exclude:notThis         Matches all tests except, 'notThis'
@@ -101,8 +102,9 @@ exclude:notThis         Matches all tests except, 'notThis'
 ~*private*              Matches all tests except those that contain 'private'
 a* ~ab* abc             Matches all tests that start with 'a', except those that
                         start with 'ab', except 'abc', which is included
+~[tag1]                 Matches all tests except those tagged with '[tag1]'
 -# [#somefile]          Matches all tests from the file 'somefile.cpp'
-
+``` Names within square brackets are interpreted as tags. A series of tags form an AND expression whereas a comma-separated sequence forms an OR expression. e.g.: