From 66b914a1eef9a86126cd39954c676a51e92fa182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 6 Sep 2026 10:50:17 +0200 Subject: Add standard output to the JUnit report --- src/Run.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Run.hs') 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 -- cgit v1.2.3