Skip to content

Commit

Permalink
Propagate 'forceMatch' for empty test groups
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Jul 14, 2023
1 parent 804b2a7 commit c56d322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core-tests/SequentialTestGroup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ filterTestTree pattern =
, sequentialTestGroup "E" AllSucceed
[ emptyTest "F"
, emptyTest "G"
, testGroup "XX" []
, emptyTest "H"
]
]
Expand Down
3 changes: 3 additions & 0 deletions core/Test/Tasty/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ filterByPattern = snd . go (Any False)
| otherwise
-> (Any False, AnnEmptyTestTree)

AnnTestGroup (opts, _) name [] ->
(forceMatch, AnnTestGroup opts name [])

AnnTestGroup (opts, _) name trees ->
case lookupOption opts of
Parallel ->
Expand Down

0 comments on commit c56d322

Please sign in to comment.