| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Distribution.Simple.Test.Log
Synopsis
- data PackageLog = PackageLog {
- package :: PackageId
- compiler :: CompilerId
- platform :: Platform
- testSuites :: [TestSuiteLog]
- data TestLogs
- data TestSuiteLog = TestSuiteLog {
- testSuiteName :: UnqualComponentName
- testLogs :: TestLogs
- logFile :: FilePath
- countTestResults :: TestLogs -> (Int, Int, Int)
- localPackageLog :: PackageDescription -> LocalBuildInfo -> PackageLog
- summarizePackage :: Verbosity -> PackageLog -> IO Bool
- summarizeSuiteFinish :: TestSuiteLog -> String
- summarizeSuiteStart :: String -> String
- summarizeTest :: Verbosity -> TestShowDetails -> TestLogs -> IO ()
- suiteError :: TestLogs -> Bool
- suiteFailed :: TestLogs -> Bool
- suitePassed :: TestLogs -> Bool
- testSuiteLogPath :: PathTemplate -> PackageDescription -> LocalBuildInfo -> String -> TestLogs -> FilePath
Documentation
data PackageLog Source #
Logs all test results for a package, broken down first by test suite and then by test case.
Constructors
| PackageLog | |
Fields
| |
Instances
| Read PackageLog Source # | |
Defined in Distribution.Simple.Test.Log Methods readsPrec :: Int -> ReadS PackageLog # readList :: ReadS [PackageLog] # readPrec :: ReadPrec PackageLog # readListPrec :: ReadPrec [PackageLog] # | |
| Show PackageLog Source # | |
Defined in Distribution.Simple.Test.Log Methods showsPrec :: Int -> PackageLog -> ShowS # show :: PackageLog -> String # showList :: [PackageLog] -> ShowS # | |
| Eq PackageLog Source # | |
Defined in Distribution.Simple.Test.Log | |
Constructors
| TestLog | |
Fields
| |
| GroupLogs String [TestLogs] | |
data TestSuiteLog Source #
Logs test suite results, itemized by test case.
Constructors
| TestSuiteLog | |
Fields
| |
Instances
| Read TestSuiteLog Source # | |
Defined in Distribution.Simple.Test.Log Methods readsPrec :: Int -> ReadS TestSuiteLog # readList :: ReadS [TestSuiteLog] # | |
| Show TestSuiteLog Source # | |
Defined in Distribution.Simple.Test.Log Methods showsPrec :: Int -> TestSuiteLog -> ShowS # show :: TestSuiteLog -> String # showList :: [TestSuiteLog] -> ShowS # | |
| Eq TestSuiteLog Source # | |
Defined in Distribution.Simple.Test.Log | |
Count the number of pass, fail, and error test results in a TestLogs
tree.
localPackageLog :: PackageDescription -> LocalBuildInfo -> PackageLog Source #
A PackageLog with package and platform information specified.
summarizePackage :: Verbosity -> PackageLog -> IO Bool Source #
summarizeSuiteFinish :: TestSuiteLog -> String Source #
Print a summary of the test suite's results on the console, suppressing output for certain verbosity or test filter levels.
summarizeSuiteStart :: String -> String Source #
summarizeTest :: Verbosity -> TestShowDetails -> TestLogs -> IO () Source #
Print a summary of a single test case's result to the console, suppressing output for certain verbosity or test filter levels.
suiteError :: TestLogs -> Bool Source #
From a TestSuiteLog, determine if the test suite encountered errors.
suiteFailed :: TestLogs -> Bool Source #
From a TestSuiteLog, determine if the test suite failed.
suitePassed :: TestLogs -> Bool Source #
From a TestSuiteLog, determine if the test suite passed.
Arguments
| :: PathTemplate | |
| -> PackageDescription | |
| -> LocalBuildInfo | |
| -> String | test suite name |
| -> TestLogs | test suite results |
| -> FilePath |