-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
Maven may generate three files for each JUnit 3 test class:
TEST-com.company.package.ClassName.xml - xml test result (message, stacktrace)
com.company.package.ClassName.txt - text form of xml file
com.company.package.ClassName-output.txt - text written to stdout while test was
running.
All output from maven is available on the Hudson site normally. But an option
available in the POM for the surfire plugin allows removing output for the tests
from that standard maven output and diverting it to the third file in the list
above. This is in the <configuration> tag under the surefile <plugin> tag. The
<redirectTestOutputToFile>true</redirectTestOutputToFile> setting does it.
Current version of Hudson shows the test result. I don't know if it formats the
xml or the txt version of it.
The output.txt is not shown anywhere on the Hudson site. This text should be
shown somewhere. It could be on the test results for the test but one text
output file holds output for one test class NOT one test. Maybe put a link to it
on the pages beside the name of the test class and/or a link to it on the page
for each test within the test class.
- is related to
-
JENKINS-6516 Heavy memory consumption for test results, esp. stdout/stderr
- Closed