I want to show unit test coverage report in tabular format whenever someone executes mvn test
on console itself. I found that maven-surefire-plugin
can only produce report in XML or HTML format and even that to a directory (target/coverage-report
). Is there some other plugin that can help me achieve same output?
Asked
Active
Viewed 4,306 times
4
1 Answers
-1
Yes, you can set the useFile
attribute to false
:
Option to generate a file test report or just output the test report to the console.
By default, this attribute is true
which means that maven-surefire-plugin
will output the reports to files and not in the console.
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<useFile>false</useFile>
</configuration>
</plugin>

Tunaki
- 132,869
- 46
- 340
- 423
-
is it working? I don't see any results in console// – Oleksandr Yefymov Feb 05 '20 at 20:08