Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Run a TestTree
and produce an HTML file summarising the test results.
Synopsis
- newtype HtmlPath = HtmlPath FilePath
- htmlRunner :: Ingredient
Documentation
Path where the HTML will be rendered.
Instances
IsOption (Maybe HtmlPath) Source # | HTML |
Defined in Test.Tasty.Runners.Html |
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 ]