tasty-1.4.2.3: Modern and extensible testing framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Tasty.Ingredients.Basic

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

Console test reporter

consoleTestReporter :: Ingredient Source #

A simple console UI

newtype Quiet Source #

Do not print test results (see README for details)

Constructors

Quiet Bool 

newtype AnsiTricks Source #

By default, when the option --hide-successes is given and the output goes to an ANSI-capable terminal, we employ some ANSI terminal tricks to display the name of the currently running test and then erase it if it succeeds.

These tricks sometimes fail, however—in particular, when the test names happen to be longer than the width of the terminal window. See

When that happens, this option can be used to disable the tricks. In that case, the test name will be printed only once the test fails.

Constructors

AnsiTricks 

Fields

Listing tests

listingTests :: Ingredient Source #

The ingredient that provides the test listing functionality

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

Obtain the list of all tests in the suite

Adding options

includingOptions :: [OptionDescription] -> Ingredient Source #

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

The option values can be accessed using askOption.