Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Tasty.Silver.Filter
Description
Regex filtering for test trees.
- filterWithRegex :: OptionSet -> TestTree -> TestTree
- checkRF :: Bool -> [RegexFilter] -> TestPath -> Bool
- data RegexFilter
- newtype IncludeFilters = IncludeFilters [RegexFilter]
- newtype ExcludeFilters = ExcludeFilters [RegexFilter]
- type TestPath = String
Documentation
filterWithRegex :: OptionSet -> TestTree -> TestTree Source
Arguments
:: Bool | If true, ignore 1. condition if no RFInclude is given. |
-> [RegexFilter] | |
-> TestPath | |
-> Bool |
Check if the given path should be kept using regex filters. A Tree leaf is retained if the following conditions are met: 1. At least one RFInclude matches. 2. No RFExclude filter matches.
data RegexFilter Source
Instances
newtype IncludeFilters Source
Tests to completely include, treating all other tests like they do not exist.
Constructors
IncludeFilters [RegexFilter] |
Instances
newtype ExcludeFilters Source
Tests to completely exlucde, treating them like they do not exist.
Constructors
ExcludeFilters [RegexFilter] |
Instances