I have a Java project that is built through maven2. We use JUnits and occasionally have test failures. I'm wondering if there is a way to display more information when the test fails. When I run the tests through IntelliJ I get something like "Expected: 3 Actual: 10."
Is there a way to get this same data through maven?
You can configure the maven surefire plugin to output more information on the console using the
useFile
option.Your configuration would look like this, then:
If you need this for specific invocations of your build you can also set this parameter via the command line, like so: