How to capture stdout/stderr in junit 5 gradle test report?
问题 My gradle project uses junit 5 and I'm trying to get the test reports to show up on my build server. The XML report basically looks fine – it contains all the test classes and methods, but it is missing stdout/stderr printed in test methods. There is only some CDATA containing test metadata. @Test void testToString() { System.out.println("Hello world"); ... } XML report: <testcase name="testToString()" classname="com.my.company.PairsTest" time="0.008"> <system-out><![CDATA[ unique-id: [engine