Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Test.Hspec.JUnit
Description
Deprecated: Use Test.Hspec.JUnit.Formatter
Synopsis
- hspecJUnit :: Spec -> IO ()
- hspecJUnitWith :: Config -> Spec -> IO ()
- configWithJUnit :: JUnitConfig -> Config -> Config
- configWithJUnitAvailable :: JUnitConfig -> Config -> Config
- junitFormat :: JUnitConfig -> FormatConfig -> IO Format
- module Test.Hspec.JUnit.Config
Runners
hspecJUnit :: Spec -> IO () Source #
Like hspec
but adds JUNit functionality
To actually use the JUnit format, you must set JUNIT_ENABLED=1
in the
environment; by default, this function just behaves like hspec
.
Running tests with --test-arguments="-f junit"
also works.
All configuration of the JUnit report occurs through environment variables.
See Test.Hspec.JUnit.Config and Test.Hspec.JUnit.Config.Env.
hspecJUnitWith :: Config -> Spec -> IO () Source #
hspecJUnit
but built on a non-default Config
Directly modifying Config
configWithJUnit :: JUnitConfig -> Config -> Config Source #
Modify an Hspec Config
to use junitFormat
configWithJUnitAvailable :: JUnitConfig -> Config -> Config Source #
Modify an Hspec Config
to have the junitFormat
available
Adds junit
to the list of available options for -f, --format
.
Actual format function
junitFormat :: JUnitConfig -> FormatConfig -> IO Format Source #
Hspec configFormat
that generates a JUnit report
Configuration
module Test.Hspec.JUnit.Config