This is a simple example of SBT not populating the sysout and syserr fields of a JUnit XML report (sbt/sbt#6537).
- Run the unit test with
sbt test
. - Check the XML output in
target/test-reports
. - The XML includes the following instead of populating those fields with the actual output from the test. This is because
JUnitXmlTestsListener.scala
hardcodes them to always be empty.
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>