Test.Tasty.Ingredients.Basic

tasty-0.11.0.3: Modern and extensible testing framework

Safe Haskell | None
Language | Haskell2010

Test.Tasty.Ingredients.Basic

Contents

- Console test reporter
- Listing tests
- Adding options

Description

This module exports the basic ingredients defined in the `tasty` packages.

Note that if `defaultIngredients` from Test.Tasty suits your needs, use that instead of importing this module.

Synopsis

- consoleTestReporter :: Ingredient
- newtype Quiet = Quiet Bool
- newtype HideSuccesses = HideSuccesses Bool
- listingTests :: Ingredient
- newtype ListTests = ListTests Bool
- testsNames :: OptionSet -> TestTree -> [TestName]
- includingOptions :: [OptionDescription] -> Ingredient

## Console test reporter

consoleTestReporter :: Ingredient

A simple console UI

newtype Quiet

Do not print test results (see README for details)

Constructors

Quiet Bool |

Instances

Eq Quiet |
Ord Quiet |
IsOption Quiet |

newtype HideSuccesses

Report only failed tests

Constructors

HideSuccesses Bool |

Instances

Eq HideSuccesses |
Ord HideSuccesses |
IsOption HideSuccesses |

## Listing tests

listingTests :: Ingredient

The ingredient that provides the test listing functionality

newtype ListTests

This option, when set to `True`, specifies that we should run in the «list tests» mode

Constructors

ListTests Bool |

Instances

Eq ListTests |
Ord ListTests |
IsOption ListTests |

testsNames :: OptionSet -> TestTree -> [TestName]

Obtain the list of all tests in the suite

## Adding options

includingOptions :: [OptionDescription] -> Ingredient

This ingredient doesn't do anything apart from registering additional options.

The option values can be accessed using `askOption`.