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.Results

Description

Results representation for the TLT testing system. See TLT for more information.

Synopsis

Results of tests

data TestFail Source #

Reasons why a test might fail.

Constructors

Asserted String

A failure arising from an Assertion which is not met.

Erred String

A failure associated with a call to a Haskell function triggering an error.

formatFail :: TestFail -> String Source #

Default conversion of a TestFail to a descriptive string.

data TestResult Source #

Hierarchical structure holding the result of running tests, possibly grouped into tests.

Constructors

Test String [TestFail] 
Group String Int Int [TestResult]

The Ints are respectively the total number of tests executed, and total number of failures detected.

failCount :: TestResult -> Int Source #

Return the number of failed tests reported in a TestResult.

testCount :: TestResult -> Int Source #

Return the number of tests described by a TestResult.

totalFailCount :: [TestResult] -> Int Source #

Return the number of failed tests described in a list of TestResults.

totalTestCount :: [TestResult] -> Int Source #

Return the number of tests described in a list of TestResults.