Description
Test output is often very chatty, especially in the error-throwing and mapreduce test cases. This output tends to detract from the actual usefulness that the surefire plugin already produces. We have some easy alternatives get around this.
- a log4j configuration file specifically for tests that puts
these in a file, rather than STDOUT/STDERR. - For tests which Exceptions are expected, ensure that loggers aren't going to accidentally log it and reset the Log level when the test is done.
- Enable redirectTestOutputToFile in the maven surefire plugin so that STDOUT is redirected to a file inside of the build temp dir (target).