| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Test.Framework.History
Contents
Description
Internal module for retaining a history of test runs.
Synopsis
- data TestHistory
- data HistoricTestResult = HistoricTestResult {
- htr_testId :: !Text
- htr_result :: !TestResult
- htr_timedOut :: !Bool
- htr_timeMs :: !Milliseconds
- emptyTestHistory :: TestHistory
- type Milliseconds = Int
- data TestResult
- serializeTestHistory :: TestHistory -> ByteString
- deserializeTestHistory :: ByteString -> Either String TestHistory
- findHistoricTestResult :: Text -> TestHistory -> Maybe HistoricTestResult
- findHistoricSuccessfulTestResult :: Text -> TestHistory -> Maybe HistoricTestResult
- updateTestHistory :: TestRunHistory -> TestHistory -> TestHistory
- mkTestRunHistory :: UTCTime -> [HistoricTestResult] -> TestRunHistory
- historyTests :: [(String, IO ())]
Documentation
data TestHistory Source #
Instances
| Show TestHistory Source # | |
Defined in Test.Framework.History Methods showsPrec :: Int -> TestHistory -> ShowS # show :: TestHistory -> String # showList :: [TestHistory] -> ShowS # | |
| Eq TestHistory Source # | |
Defined in Test.Framework.History | |
data HistoricTestResult Source #
Constructors
| HistoricTestResult | |
Fields
| |
Instances
| FromJSON HistoricTestResult Source # | |
Defined in Test.Framework.History Methods parseJSON :: Value -> Parser HistoricTestResult # parseJSONList :: Value -> Parser [HistoricTestResult] # | |
| ToJSON HistoricTestResult Source # | |
Defined in Test.Framework.History Methods toJSON :: HistoricTestResult -> Value # toEncoding :: HistoricTestResult -> Encoding # toJSONList :: [HistoricTestResult] -> Value # toEncodingList :: [HistoricTestResult] -> Encoding # omitField :: HistoricTestResult -> Bool # | |
| Show HistoricTestResult Source # | |
Defined in Test.Framework.History Methods showsPrec :: Int -> HistoricTestResult -> ShowS # show :: HistoricTestResult -> String # showList :: [HistoricTestResult] -> ShowS # | |
| Eq HistoricTestResult Source # | |
Defined in Test.Framework.History Methods (==) :: HistoricTestResult -> HistoricTestResult -> Bool # (/=) :: HistoricTestResult -> HistoricTestResult -> Bool # | |
type Milliseconds = Int Source #
A type synonym for time in milliseconds.
data TestResult Source #
The summary result of a test.
Instances
| FromJSON TestResult Source # | |
Defined in Test.Framework.History | |
| ToJSON TestResult Source # | |
Defined in Test.Framework.History Methods toJSON :: TestResult -> Value # toEncoding :: TestResult -> Encoding # toJSONList :: [TestResult] -> Value # toEncodingList :: [TestResult] -> Encoding # omitField :: TestResult -> Bool # | |
| Read TestResult Source # | |
Defined in Test.Framework.TestInterface Methods readsPrec :: Int -> ReadS TestResult # readList :: ReadS [TestResult] # readPrec :: ReadPrec TestResult # readListPrec :: ReadPrec [TestResult] # | |
| Show TestResult Source # | |
Defined in Test.Framework.TestInterface Methods showsPrec :: Int -> TestResult -> ShowS # show :: TestResult -> String # showList :: [TestResult] -> ShowS # | |
| Eq TestResult Source # | |
Defined in Test.Framework.TestInterface | |
updateTestHistory :: TestRunHistory -> TestHistory -> TestHistory Source #
mkTestRunHistory :: UTCTime -> [HistoricTestResult] -> TestRunHistory Source #
historyTests :: [(String, IO ())] Source #
Orphan instances
| FromJSON TestResult Source # | |
| ToJSON TestResult Source # | |
Methods toJSON :: TestResult -> Value # toEncoding :: TestResult -> Encoding # toJSONList :: [TestResult] -> Value # toEncodingList :: [TestResult] -> Encoding # omitField :: TestResult -> Bool # | |