Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
:: 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.
newtype IncludeFilters Source
Tests to completely include, treating all other tests like they do not exist.
newtype ExcludeFilters Source
Tests to completely exlucde, treating them like they do not exist.