Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 :: [([Char], IO ())]
Documentation
data TestHistory Source #
Instances
Eq TestHistory Source # | |
Defined in Test.Framework.History (==) :: TestHistory -> TestHistory -> Bool # (/=) :: TestHistory -> TestHistory -> Bool # | |
Show TestHistory Source # | |
Defined in Test.Framework.History showsPrec :: Int -> TestHistory -> ShowS # show :: TestHistory -> String # showList :: [TestHistory] -> ShowS # |
data HistoricTestResult Source #
HistoricTestResult | |
|
Instances
Eq HistoricTestResult Source # | |
Defined in Test.Framework.History (==) :: HistoricTestResult -> HistoricTestResult -> Bool # (/=) :: HistoricTestResult -> HistoricTestResult -> Bool # | |
Show HistoricTestResult Source # | |
Defined in Test.Framework.History showsPrec :: Int -> HistoricTestResult -> ShowS # show :: HistoricTestResult -> String # showList :: [HistoricTestResult] -> ShowS # | |
ToJSON HistoricTestResult Source # | |
Defined in Test.Framework.History toJSON :: HistoricTestResult -> Value # toEncoding :: HistoricTestResult -> Encoding # toJSONList :: [HistoricTestResult] -> Value # toEncodingList :: [HistoricTestResult] -> Encoding # | |
FromJSON HistoricTestResult Source # | |
Defined in Test.Framework.History parseJSON :: Value -> Parser HistoricTestResult # parseJSONList :: Value -> Parser [HistoricTestResult] # |
type Milliseconds = Int Source #
A type synonym for time in milliseconds.
data TestResult Source #
The summary result of a test.
Instances
Eq TestResult Source # | |
Defined in Test.Framework.TestInterface (==) :: TestResult -> TestResult -> Bool # (/=) :: TestResult -> 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 # | |
ToJSON TestResult Source # | |
Defined in Test.Framework.History toJSON :: TestResult -> Value # toEncoding :: TestResult -> Encoding # toJSONList :: [TestResult] -> Value # toEncodingList :: [TestResult] -> Encoding # | |
FromJSON TestResult Source # | |
Defined in Test.Framework.History parseJSON :: Value -> Parser TestResult # parseJSONList :: Value -> Parser [TestResult] # |
updateTestHistory :: TestRunHistory -> TestHistory -> TestHistory Source #
mkTestRunHistory :: UTCTime -> [HistoricTestResult] -> TestRunHistory Source #
historyTests :: [([Char], IO ())] Source #
Orphan instances
ToJSON TestResult Source # | |
toJSON :: TestResult -> Value # toEncoding :: TestResult -> Encoding # toJSONList :: [TestResult] -> Value # toEncodingList :: [TestResult] -> Encoding # | |
FromJSON TestResult Source # | |
parseJSON :: Value -> Parser TestResult # parseJSONList :: Value -> Parser [TestResult] # |