summaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-29 19:10:12 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-09-01 20:17:41 +0200
commit51372b67922a2fd031c4da572372f50ba62e4250 (patch)
tree936908ede0b8befdb075cf9527232eaf9650d57c /src/Main.hs
parent14d66fe918b9101c31ce3d77f37ec753b7e79813 (diff)
Print summary report also in quiet mode
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 253c1e8..8c50bce 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -218,22 +218,22 @@ main = do
Report {..} <- runTests out topts lmGlobalDefs tests
when (optReport opts) $ flip runReaderT out $ do
- outLineF OutputGlobalInfo Nothing $ "Total: " <> plainText (T.pack (show reportTotalCount))
- outLineF OutputGlobalInfo Nothing $ mconcat
+ outLineF OutputGlobalSummary Nothing $ "Total: " <> plainText (T.pack (show reportTotalCount))
+ outLineF OutputGlobalSummary Nothing $ mconcat
[ "Passed: "
, withStyle (if (reportPassedCount > 0) then setForegroundColor Green noStyle else noStyle) $
plainText $ T.pack $ show reportPassedCount
]
- outLineF OutputGlobalInfo Nothing $ mconcat
+ outLineF OutputGlobalSummary Nothing $ mconcat
[ "Failed: "
, withStyle (if (reportFailedCount > 0) then setForegroundColor Red noStyle else noStyle) $
plainText (T.pack (show reportFailedCount))
]
when (reportFailedCount > 0) $ do
- outLine OutputGlobalInfo Nothing ""
- outLineF OutputGlobalInfo Nothing $ withStyle (setForegroundColor BrightRed noStyle) $ "Failing tests:"
+ outLine OutputGlobalSummary Nothing ""
+ outLineF OutputGlobalSummary Nothing $ withStyle (setForegroundColor BrightRed noStyle) $ "Failing tests:"
forM_ reportFailedList $ \tname -> do
- outLineF OutputGlobalInfo Nothing $
+ outLineF OutputGlobalSummary Nothing $
withStyle (setForegroundColor Red noStyle) $
plainText $ textTestName tname