summaryrefslogtreecommitdiff
path: root/src/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-09-06 10:50:17 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-09-08 20:11:47 +0200
commit66b914a1eef9a86126cd39954c676a51e92fa182 (patch)
tree92242a3541dd9a2012f9b8718c9eea109e36dd23 /src/Run.hs
parent359ddc68ea519108c3cf05c7a6eaff02217e979f (diff)
Add standard output to the JUnit report
Diffstat (limited to 'src/Run.hs')
-rw-r--r--src/Run.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Run.hs b/src/Run.hs
index 7e61c1f..1d637d3 100644
--- a/src/Run.hs
+++ b/src/Run.hs
@@ -75,6 +75,8 @@ data SingleTestReport = SingleTestReport
{ reportTestName :: TestName
, reportTestFailed :: Maybe Failed
, reportTime :: Scientific
+ , reportOutput :: Text
+ , reportOutputError :: Text
}
runTests :: Output -> TestOptions -> GlobalDefs -> [ Test ] -> IO Report
@@ -187,6 +189,8 @@ runTest out opts gdefs test = do
( res, [] ) <- takeMVar testRunResult
reportTime <- getElapsedTime out
+ reportOutput <- collectOutput out
+ reportOutputError <- collectErrorOutput out
void $ installHandler processStatusChanged oldHandler Nothing