| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.HUnitPlus.XML
Contents
Description
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 :: (String, String) -> Node String String
- propertiesElem :: [(String, String)] -> Node String String
- systemOutElem :: String -> Node String String
- systemErrElem :: String -> Node String String
- failureElem :: String -> Node String String
- errorElem :: String -> Node String String
- testcaseElem :: String -> String -> Word -> Double -> [Node String String] -> Node String String
- skippedTestElem :: String -> String -> Node String String
- testSuiteElem :: String -> Map String String -> Word -> Word -> Word -> Word -> String -> UTCTime -> Double -> [Node String String] -> Node String String
- testSuitesElem :: Double -> [Node String String] -> Node String String
- xmlReporter :: Reporter [[Node String String]]
XML Generation
Generate an element for a property definition
Arguments
| :: [(String, String)] | A list of name/value pairs to make into properties |
| -> Node String String |
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.
Arguments
| :: String | The name of the test |
| -> String | The path to the test (reported as "classname") |
| -> Word | The number of assertions in the test |
| -> Double | The execution time of the test |
| -> [Node String String] | Elements representing the events that happened during test execution. |
| -> Node String String |
Generate an element for a single test case.
Generate an element for a skipped test case
Arguments
| :: String | The name of the test suite |
| -> Map String String | 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 |
| -> String | 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 String String] | The testcases and output nodes for the test suite |
| -> Node String String |
Generate an element for a test suite run
Arguments
| :: Double | The execution time of all suites |
| -> [Node String String] | Elements representing all the test suites |
| -> Node String String |
Generate the top-level element containing all test suites