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

Test.Tasty.Providers.ConsoleFormat

Description

This module can be used by providers to perform colorful/formatted output and possibly re-use tasty's own output formats.

Since: 1.3.1

Synopsis

Documentation

newtype ResultDetailsPrinter Source #

An action that prints additional information about a test using colors/formatting; see testFailedDetails and resultDetailsPrinter.

As input, this action is provided with the current indentation level and a ConsoleFormatPrinter, which tells it how perform output.

This is a newtype to allow a Show instance.

Since: 1.3.1

data ConsoleFormat Source #

Console output format

Since: 1.3.1

type ConsoleFormatPrinter Source #

Arguments

 = ConsoleFormat

selected console format

-> IO ()

action to be executed with active console format

-> IO () 

Type of console format printer functions

Since: 1.3.1

noResultDetails :: ResultDetailsPrinter Source #

Noop result details printer. The default for most providers.

Since: 1.3.1

failFormat :: ConsoleFormat Source #

Format used to display failures

Since: 1.3.1

infoFailFormat :: ConsoleFormat Source #

Format used to display additional information on failures

infoOkFormat :: ConsoleFormat Source #

Format used to display additional information on sucesses

Since: 1.3.1

okFormat :: ConsoleFormat Source #

Format used to display sucesses

Since: 1.3.1

skippedFormat :: ConsoleFormat Source #

Format used to display skipped tests

Since: 1.3.1