tasty-discover-4.2.0: Test discovery for the tasty framework.

Safe HaskellSafe
LanguageHaskell2010

Test.Tasty.Generator

Contents

Description

The test generator boilerplate module.

Any test that is supported (HUnit, HSpec, etc.) provides here, a generator type with all the context necessary for outputting the necessary boilerplate for the generated main function that will run all the tests.

Synopsis

Types

data Generator Source #

The generator type.

Constructors

Generator 

Fields

data Test Source #

The test type.

Constructors

Test 

Fields

Instances

Eq Test Source # 

Methods

(==) :: Test -> Test -> Bool #

(/=) :: Test -> Test -> Bool #

Ord Test Source # 

Methods

compare :: Test -> Test -> Ordering #

(<) :: Test -> Test -> Bool #

(<=) :: Test -> Test -> Bool #

(>) :: Test -> Test -> Bool #

(>=) :: Test -> Test -> Bool #

max :: Test -> Test -> Test #

min :: Test -> Test -> Test #

Show Test Source # 

Methods

showsPrec :: Int -> Test -> ShowS #

show :: Test -> String #

showList :: [Test] -> ShowS #

Generators

generators :: [Generator] Source #

All types of tests supported for boilerplate generation.

getGenerator :: Test -> Generator Source #

Generator retriever (single).

getGenerators :: [Test] -> [Generator] Source #

Generator retriever (many).

Boilerplate Formatter

showSetup :: Test -> String -> String Source #

Boilerplate formatter.

Type Constructor

mkTest :: FilePath -> String -> Test Source #

Test constructor.