I’m running a single test from Maven:
mvn test -Dtest=TestCircle
If the test fails, Maven outputs the exceptions in /target/... folder.
Is there a way to tell Maven that this exception should be printed directly on the console, so I don’t have to look in /target/surefire-reports/...?
You can configure the surefire plugin to generate a file test report or just output the test report to the console using the
useFileoptional parameter:Or, from the command line with the corresponding expression: