Skip to content

Commit

Permalink
Render test summary
Browse files Browse the repository at this point in the history
The HTML is incorrect but the test results come up. Now it's a matter of
arranging the render steps it properly.
  • Loading branch information
jdnavarro committed Feb 25, 2014
1 parent 13bd4bb commit d409229
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Test/Tasty/Runners/Html.hs
Expand Up @@ -7,6 +7,7 @@
-- | Run a 'Tasty.TestTree' and produce an HTML file summarising the test results.
module Test.Tasty.Runners.Html (htmlRunner) where

import Debug.Trace
import Control.Applicative
import Control.Monad.Trans.Class (lift)
import Data.Maybe (fromMaybe)
Expand Down Expand Up @@ -127,5 +128,6 @@ htmlRunner = Tasty.TestReporter optionDescription runner
H.p ! HA.class_ "summaryErrors" $ H.toHtml . show . getSum $ summaryErrors summary
H.p ! HA.class_ "summaryFailures" $ H.toHtml . show . getSum $ summaryFailures summary
H.div ! HA.class_ "tests" $ H.toHtml $ show tests
H.toHtml $ htmlRenderer summary

return (getSum ((summaryFailures `mappend` summaryErrors) summary) == 0)

0 comments on commit d409229

Please sign in to comment.