Cabal-1.20.0.2: A framework for packaging Haskell software

Safe HaskellNone

Distribution.Simple.Test.Log

Synopsis

Documentation

data PackageLog Source

Logs all test results for a package, broken down first by test suite and then by test case.

data TestSuiteLog Source

Logs test suite results, itemized by test case.

countTestResultsSource

Arguments

:: TestLogs 
-> (Int, Int, Int)

Passes, fails, and errors, respectively.

Count the number of pass, fail, and error test results in a TestLogs tree.

localPackageLog :: PackageDescription -> LocalBuildInfo -> PackageLogSource

A PackageLog with package and platform information specified.

summarizePackage :: Verbosity -> PackageLog -> IO BoolSource

Print a summary to the console after all test suites have been run indicating the number of successful test suites and cases. Returns True if all test suites passed and False otherwise.

summarizeSuiteFinish :: TestSuiteLog -> StringSource

Print a summary of the test suite's results on the console, suppressing output for certain verbosity or test filter levels.

summarizeTest :: Verbosity -> TestShowDetails -> TestLogs -> IO ()Source

Print a summary of a single test case's result to the console, supressing output for certain verbosity or test filter levels.

suiteError :: TestLogs -> BoolSource

From a TestSuiteLog, determine if the test suite encountered errors.

suiteFailed :: TestLogs -> BoolSource

From a TestSuiteLog, determine if the test suite failed.

suitePassed :: TestLogs -> BoolSource

From a TestSuiteLog, determine if the test suite passed.

testSuiteLogPathSource

Arguments

:: PathTemplate 
-> PackageDescription 
-> LocalBuildInfo 
-> String

test suite name

-> TestLogs

test suite results

-> FilePath