Skip to content

Commit f0aa85d

Browse files
author
annacastroops
committed
feat(reporter): print section/generator path filters (#3099)
Signed-off-by: annacastroops <annacastroops@users.noreply.github.com>
1 parent 15891df commit f0aa85d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/filtering-execution-path.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ things:
3131
that if you specify path filters without a test case filter, Catch2
3232
will try to apply the path filters inside every registered test case.
3333

34+
When path filters are active, the console and compact reporters print them
35+
under a `Path filters:` heading (right after the usual `Filters:` line),
36+
so it is clear which section/generator selection was requested even if the
37+
combination runs no assertions:
38+
39+
```
40+
Filters: "Scenario: Create and train model on entire dataset"
41+
Path filters:
42+
- Section: "Given: a fresh dataset"
43+
- Generator: "0"
44+
```
45+
3446
## Old behaviour
3547

3648
> The old behaviour was deprecated in Catch2 3.13.0

0 commit comments

Comments
 (0)