janusgraph icon indicating copy to clipboard operation
janusgraph copied to clipboard

Redirect test case output to their individual output files.

Open jerryjch opened this issue 9 years ago • 0 comments

Currently, all the test cases in a module output their logging to a single file test.log.
Also there are some console output from the test cases interleaving with formal status and result on the console. We can re-direct the logging output and console output to individual output file for each test case. On the console, the test result will be displayed cleanly without output in between.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.janusgraph.diskstorage.solr.BerkeleySolrTest
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 141.503 sec - in org.janusgraph.diskstorage.solr.BerkeleySolrTest
Running org.janusgraph.diskstorage.solr.SolrIndexTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.565 sec - in org.janusgraph.diskstorage.solr.SolrIndexTest

Surefire and failsafe plugs' redirectTestOutputToFile property will be used. Each test case TestA will have a TestA-output.txt in the surefire or failsafe report directory for easy diagnostic.

jerryjch avatar Feb 28 '17 18:02 jerryjch