HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletasty-discover-5.1.0Haskell2010

Test.Tasty.Discover.Internal.Generator

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.

  • 2 types
  • 5 values

Types

2 declarations
datadata Generator
#

The generator type.

Constructors

Instances2Generic, Rep
datadata Test
#

The test type.

Constructors

Instances5Eq, Ord, Show, Generic, Rep

Generators

3 declarations
valuegetGenerators :: [Test] -> [Generator]
#

Generator retriever (many).

Groups tests by generator prefix and extracts one representative generator from each group. Uses unsafeHead because groupBy never produces empty groups when given a non-empty input list.

Boilerplate Formatter

1 declaration

Type Constructor

1 declaration