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
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.
Instances
IsOption IncludeFilters Source # | |
Defined in Test.Tasty.Silver.Filter defaultValue :: IncludeFilters parseValue :: String -> Maybe IncludeFilters optionName :: Tagged IncludeFilters String optionHelp :: Tagged IncludeFilters String showDefaultValue :: IncludeFilters -> Maybe String optionCLParser :: Parser IncludeFilters |
newtype ExcludeFilters Source #
Tests to completely exlucde, treating them like they do not exist.
Instances
IsOption ExcludeFilters Source # | |
Defined in Test.Tasty.Silver.Filter defaultValue :: ExcludeFilters parseValue :: String -> Maybe ExcludeFilters optionName :: Tagged ExcludeFilters String optionHelp :: Tagged ExcludeFilters String showDefaultValue :: ExcludeFilters -> Maybe String optionCLParser :: Parser ExcludeFilters |