summaryrefslogtreecommitdiff
path: root/src/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-01-14 20:02:29 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-01-14 20:02:29 +0100
commit379d88e72a66eb876dfdf452d79081f5e4277979 (patch)
tree8f8ca97d960f994df450cf73d1c4c810d93d8e1a /src/Run.hs
parentea8109cef731b2c876b9effa759763bf59d878aa (diff)
Print test names in verbose output
Changelog: Verbose output now includes test names.
Diffstat (limited to 'src/Run.hs')
-rw-r--r--src/Run.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Run.hs b/src/Run.hs
index 7cea577..430a663 100644
--- a/src/Run.hs
+++ b/src/Run.hs
@@ -107,6 +107,9 @@ runTest out opts gdefs test = do
resetOutputTime out
testRunResult <- newEmptyMVar
+ flip runReaderT out $ do
+ void $ outLine OutputGlobalInfo Nothing $ "Starting test ‘" <> testName test <> "’"
+
void $ forkOS $ do
isolateFilesystem testDir >>= \case
True -> do
@@ -134,7 +137,7 @@ runTest out opts gdefs test = do
return True
_ -> do
flip runReaderT out $ do
- void $ outLine OutputError Nothing $ "Test ‘" <> testName test <> "’ failed."
+ void $ outLine OutputGlobalError Nothing $ "Test ‘" <> testName test <> "’ failed."
return False