Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 showsPrec :: Int -> TestHistory -> ShowS # show :: TestHistory -> String # showList :: [TestHistory] -> ShowS # | |
Eq TestHistory Source # | |
Defined in Test.Framework.History (==) :: TestHistory -> TestHistory -> Bool # (/=) :: TestHistory -> TestHistory -> Bool # |
data HistoricTestResult Source #
HistoricTestResult | |
|
Instances
FromJSON HistoricTestResult Source # | |
Defined in Test.Framework.History | |
ToJSON HistoricTestResult Source # | |
Defined in Test.Framework.History toJSON :: HistoricTestResult -> Value # toEncoding :: HistoricTestResult -> Encoding # toJSONList :: [HistoricTestResult] -> Value # toEncodingList :: [HistoricTestResult] -> Encoding # omitField :: HistoricTestResult -> Bool # | |
Show HistoricTestResult Source # | |
Defined in Test.Framework.History showsPrec :: Int -> HistoricTestResult -> ShowS # show :: HistoricTestResult -> String # showList :: [HistoricTestResult] -> ShowS # | |
Eq HistoricTestResult Source # | |
Defined in Test.Framework.History (==) :: 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 parseJSON :: Value -> Parser TestResult # parseJSONList :: Value -> Parser [TestResult] # | |
ToJSON TestResult Source # | |
Defined in Test.Framework.History toJSON :: TestResult -> Value # toEncoding :: TestResult -> Encoding # toJSONList :: [TestResult] -> Value # toEncodingList :: [TestResult] -> Encoding # omitField :: TestResult -> Bool # | |
Read TestResult Source # | |
Defined in Test.Framework.TestInterface readsPrec :: Int -> ReadS TestResult # readList :: ReadS [TestResult] # readPrec :: ReadPrec TestResult # readListPrec :: ReadPrec [TestResult] # | |
Show TestResult Source # | |
Defined in Test.Framework.TestInterface showsPrec :: Int -> TestResult -> ShowS # show :: TestResult -> String # showList :: [TestResult] -> ShowS # | |
Eq TestResult Source # | |
Defined in Test.Framework.TestInterface (==) :: TestResult -> TestResult -> Bool # (/=) :: TestResult -> TestResult -> Bool # |
updateTestHistory :: TestRunHistory -> TestHistory -> TestHistory Source #
mkTestRunHistory :: UTCTime -> [HistoricTestResult] -> TestRunHistory Source #
historyTests :: [(String, IO ())] Source #
Orphan instances
FromJSON TestResult Source # | |
parseJSON :: Value -> Parser TestResult # parseJSONList :: Value -> Parser [TestResult] # | |
ToJSON TestResult Source # | |
toJSON :: TestResult -> Value # toEncoding :: TestResult -> Encoding # toJSONList :: [TestResult] -> Value # toEncodingList :: [TestResult] -> Encoding # omitField :: TestResult -> Bool # |