MIT licensed by Freckle R&D
This version can be pinned in stack with:hspec-junit-formatter-1.0.2.0@sha256:c1c11ce32e13caf7d9b0e6ddec7c8d4b8a97a2ac4a9db7fd28c36712f2273dc4,3768
Module documentation for 1.0.2.0
Depends on 11 packages
(full list with versions):
base,
conduit,
containers,
directory,
exceptions,
filepath,
hspec-core,
text,
time,
xml-conduit,
xml-types hspec-junit-formatter
A JUnit
XML runner/formatter for hspec
.
Usage
import Test.Hspec
import Test.Hspec.Core.Runner (defaultConfig, hspecWith)
import Test.Hspec.JUnit
main :: IO ()
main = do
let
junitConfig = setJUnitConfigOutputDirectory "/tmp" $ defaultJUnitConfig "my-tests"
hspecConfig = configWithJUnit junitConfig defaultConfig
hspecWith hspecConfig spec
spec :: Spec
spec = describe "Addition" $ do
it "adds" $ do
2 + 2 `shouldBe` (4 :: Int)
LICENSE
None
- Create
Test.Hspec
module-space and deprecate misspelled Test.HSpec
modules
- Introduce
configWithJUnit
and JUnitConfig
- Format function can be used directly without
withConfig
or runJUnitSpec
.
- Test case duration is now supported.
- Failure locations are listed for some result types.
- Timestamps in the resulting XML now display the start time of formatting.
- Bring
base
bound back in to fix release
- Remove dependencies upper bounds
- Less restrictive upper bound on
base
Initial release.