tasty-html 0.4.1.3 → 0.4.1.4
raw patch · 3 files changed
+21/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- Test/Tasty/Runners/Html.hs +15/−0
- tasty-html.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+0.4.1.4 - 2021-01-13+--------------------++Documentation improvements+ 0.4.1.3 - 2021-01-13 --------------------
Test/Tasty/Runners/Html.hs view
@@ -38,6 +38,7 @@ ) import Test.Tasty.Providers (IsTest, TestName) import qualified Test.Tasty.Runners as Tasty+import qualified Test.Tasty.Ingredients as Tasty import Test.Tasty.Options as Tasty import Text.Blaze.Html5 (Markup, AttributeValue, (!)) import qualified Text.Blaze.Html5 as H@@ -78,6 +79,14 @@ 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 'Tasty.composeReporters', as in++ > main = defaultMainWithIngredients ingredients tests+ > where ingredients = [ listingTests, htmlRunner `composeReporters` consoleTestReporter ]+ -} htmlRunner :: Ingredient htmlRunner = TestReporter optionDescription $ \options testTree -> do@@ -100,6 +109,12 @@ optionDescription = [ Option (Proxy :: Proxy (Maybe HtmlPath)) , Option (Proxy :: Proxy (Maybe AssetsPath)) ]++-- Silence unused import warning+_onlyUsedByHaddock :: ()+_onlyUsedByHaddock = ()+ where _ = Tasty.composeReporters+ -- * Internal
tasty-html.cabal view
@@ -1,5 +1,5 @@ name: tasty-html-version: 0.4.1.3+version: 0.4.1.4 synopsis: Render tasty output to HTML description: A tasty ingredient to output test results in HTML5. license: MIT