tasty-silver-3.3.2: A fancy test runner, including support for golden tests.
Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Silver.Filter

Description

Regex filtering for test trees.

Synopsis

Documentation

filterWithRegex :: OptionSet -> TestTree -> TestTree Source #

checkRF Source #

Arguments

:: Bool

If True, ignore first 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 #

Constructors

RFInclude String

Include tests that match.

RFExclude String

Exclude tests that match.

newtype IncludeFilters Source #

Tests to completely include, treating all other tests like they do not exist.

Constructors

IncludeFilters [RegexFilter] 

Instances

Instances details
IsOption IncludeFilters Source # 
Instance details

Defined in Test.Tasty.Silver.Filter

newtype ExcludeFilters Source #

Tests to completely exclude, treating them like they do not exist.

Constructors

ExcludeFilters [RegexFilter] 

Instances

Instances details
IsOption ExcludeFilters Source # 
Instance details

Defined in Test.Tasty.Silver.Filter

type TestPath = String Source #

Path into the TestTree. Separator is the slash character(/).