| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Test.Tasty.Silver.Filter
Description
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
Arguments
| :: 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.
data RegexFilter Source #
newtype IncludeFilters Source #
Tests to completely include, treating all other tests like they do not exist.
Constructors
| IncludeFilters [RegexFilter] | 
Instances
| IsOption IncludeFilters Source # | |
| Defined in Test.Tasty.Silver.Filter | |
newtype ExcludeFilters Source #
Tests to completely exclude, treating them like they do not exist.
Constructors
| ExcludeFilters [RegexFilter] | 
Instances
| IsOption ExcludeFilters Source # | |
| Defined in Test.Tasty.Silver.Filter | |