mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 05:00:15 -05:00

The consequence of this is that any output emitted after the test or benchmark result, will no longer belong to the last test. Instead it will be appended to the global log. This is necessary to correctly attribute output to the correct test or benchmark, for example in cases where both tests and benchmarks appear. In the past, Go test output printed test logs after the test result. However, from Go 1.14 this behaviour was changed and test logs are now printed before the test result. With this commit, we effectively no longer support the old behaviour in Go1.13 and earlier. The output will still appear in the generated report, however it will no longer belong to the correct test.