tasty-silver-3.3.1.1: A fancy test runner, including support for golden tests.
Safe HaskellSafe-Inferred
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.

newtype IncludeFilters Source #

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

Constructors

IncludeFilters [RegexFilter] 

newtype ExcludeFilters Source #

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

Constructors

ExcludeFilters [RegexFilter] 

type TestPath = String Source #

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