hspec-junit-formatter-1.1.2.1: A JUnit XML runner/formatter for hspec
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Hspec.JUnit.Config.Env

Description

Load a JUnitConfig using environment variables

Synopsis

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:

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