Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Test.Hspec.JUnit.Config.Env
Contents
Description
Load a JUnitConfig
using environment variables
Synopsis
- envJUnitEnabled :: IO Bool
- envJUnitConfig :: IO JUnitConfig
- readJUnitConfig :: FilePath -> [(String, String)] -> JUnitConfig
Documentation
envJUnitEnabled :: IO Bool Source #
Is JUNIT_ENABLED=1
set in the environment?
envJUnitConfig :: IO JUnitConfig Source #
Produce a JUnitConfig
by reading environment variables
Variable names align with setter functions from Test.Hspec.JUnit.Config:
JUNIT_OUTPUT_DIRECTORY
setJUnitConfigOutputDirectory
JUNIT_OUTPUT_NAME
setJUnitConfigOutputName
- and so on
Environment variable values will have the string {base}
replaced with the
basename of the current directory. This can be useful in a monorepository of
multiple packages, for example: JUNIT_OUTPUT_FILE={base}.xml
Exported for testing
readJUnitConfig :: FilePath -> [(String, String)] -> JUnitConfig Source #