Safe Haskell | None |
---|---|
Language | Haskell2010 |
Regex filtering for test trees.
Synopsis
- filterWithRegex :: OptionSet -> TestTree -> TestTree
- checkRF :: Bool -> [RegexFilter] -> TestPath -> Bool
- data RegexFilter
- newtype IncludeFilters = IncludeFilters [RegexFilter]
- newtype ExcludeFilters = ExcludeFilters [RegexFilter]
- type TestPath = String
Documentation
:: Bool | |
-> [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.
Instances
newtype ExcludeFilters Source #
Tests to completely exlucde, treating them like they do not exist.