TLT-0.5.0.0: Testing in monads and transformers without explicit specs
Copyright(c) John Maraist 2022
LicenseGPL3
Maintainerhaskell-tlt@maraist.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.TLT.Report

Description

Default results reporting for the TLT testing system. See TLT for more information.

Synopsis

Documentation

tlt :: MonadIO m => TLT m r -> m () Source #

Execute the tests specified in a TLT monad, and report the results as text output.

When using TLT from some other package (as opposed to using TLT itself as your test framework, and wishing to see its human-oriented output directly), consider using runTLT instead.

report :: TLTopts -> [TestResult] -> IO () Source #

Report the results of tests.

boldBlack :: IO () Source #

Command to set an ANSI terminal to boldface black.

boldRed :: IO () Source #

Command to set an ANSI terminal to boldface red.

boldGreen :: IO () Source #

Command to set an ANSI terminal to boldface green.

mediumRed :: IO () Source #

Command to set an ANSI terminal to medium-weight red.

mediumGreen :: IO () Source #

Command to set an ANSI terminal to medium-weight green.

mediumBlue :: IO () Source #

Command to set an ANSI terminal to medium-weight blue.

mediumBlack :: IO () Source #

Command to set an ANSI terminal to medium-weight black.

greenPass :: IO () Source #

Command to set an ANSI terminal to the standard TLT weight and color for a passing test.

redFail :: IO () Source #

Command to set an ANSI terminal to the standard TLT weight and color for a failing test.