Safe Haskell | None |
---|---|
Language | Haskell2010 |
Reporter
for running HUnit tests and reporting results as
JUnit-style XML reports. This uses the hexpat library for XML
generation. This module also contains functions for creating the
various nodes in a JUnit XML report.
- propertyElem :: (Text, Text) -> Node Text Text
- propertiesElem :: [(Text, Text)] -> Node Text Text
- systemOutElem :: Text -> Node Text Text
- systemErrElem :: Text -> Node Text Text
- failureElem :: Text -> Node Text Text
- errorElem :: Text -> Node Text Text
- testcaseElem :: Text -> Text -> Word -> Double -> [Node Text Text] -> Node Text Text
- skippedTestElem :: Text -> Text -> Node Text Text
- testSuiteElem :: Text -> HashMap Text Text -> Word -> Word -> Word -> Word -> Text -> UTCTime -> Double -> [Node Text Text] -> Node Text Text
- testSuitesElem :: Double -> [Node Text Text] -> Node Text Text
- xmlReporter :: Reporter [[Node Text Text]]
XML Generation
Generate an element for a property definition
Generate an element for a set of property definitions
Generate an element representing output to stdout
Generate an element representing output to stderr
Generate an element representing a test failure.
Generate an element representing an error in a test.
:: Text | The name of the test |
-> Text | The path to the test (reported as "classname") |
-> Word | The number of assertions in the test |
-> Double | The execution time of the test |
-> [Node Text Text] | Elements representing the events that happened during test execution. |
-> Node Text Text |
Generate an element for a single test case.
Generate an element for a skipped test case
:: Text | The name of the test suite |
-> HashMap Text Text | The properties defined for this suite |
-> Word | The number of tests |
-> Word | The number of failures |
-> Word | The number of errors |
-> Word | The number of skipped tests |
-> Text | The hostname of the machine on which this was run |
-> UTCTime | The timestamp at which time this was run |
-> Double | The execution time for the test suite |
-> [Node Text Text] | The testcases and output nodes for the test suite |
-> Node Text Text |
Generate an element for a test suite run
:: Double | The execution time of all suites |
-> [Node Text Text] | Elements representing all the test suites |
-> Node Text Text |
Generate the top-level element containing all test suites