Safe Haskell | None |
---|---|
Language | Haskell98 |
Run a TestTree
and produce an HTML file summarising the test results.
Synopsis
- newtype HtmlPath = HtmlPath FilePath
- htmlRunner :: Ingredient
- newtype AssetsPath = AssetsPath FilePath
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 ]
newtype AssetsPath Source #
Path where external assets will be looked up
Instances
IsOption (Maybe AssetsPath) Source # | Assets |
Defined in Test.Tasty.Runners.Html defaultValue :: Maybe AssetsPath # parseValue :: String -> Maybe (Maybe AssetsPath) # optionName :: Tagged (Maybe AssetsPath) String # optionHelp :: Tagged (Maybe AssetsPath) String # showDefaultValue :: Maybe AssetsPath -> Maybe String # optionCLParser :: Parser (Maybe AssetsPath) # |