tasty-html-0.4.1.4: Render tasty output to HTML
Safe HaskellNone
LanguageHaskell98

Test.Tasty.Runners.Html

Description

Run a TestTree and produce an HTML file summarising the test results.

Synopsis

Documentation

newtype HtmlPath Source #

Path where the HTML will be rendered.

Constructors

HtmlPath FilePath 

htmlRunner :: Ingredient Source #

To run tests using this ingredient, use defaultMainWithIngredients, passing htmlRunner as one possible ingredient. This ingredient will run tests if you pass the --html command line option. For example, --html=results.html will run all the tests and generate results.html as output.

Note enabling --html will ignore all ingredients following htmlRunner. If you want to produce the HTML report in addition to other outputs, you can use composeReporters, as in

main = defaultMainWithIngredients ingredients tests
  where ingredients = [ listingTests, htmlRunner `composeReporters` consoleTestReporter ]

newtype AssetsPath Source #

Path where external assets will be looked up

Constructors

AssetsPath FilePath