Aaron Shaver
Aaron Shaver

Reputation: 494

How to get a nicely formatted JUnit report out of a Maven test run?

I have:

To run it, I do maven clean test etc.

I can generate Surefire HTML reports with a surefire-report Maven switch, but they're not very detailed and I don't think they conform to standard JUnit reports?

Any hints on how I can get a JUnit report output with a nice format (e.g. HTML + CSS)?

Thanks.

Upvotes: 3

Views: 12799

Answers (2)

Shantonu
Shantonu

Reputation: 1301

You may try Allure Reports which can generate a report website .

A sample project here

Upvotes: 0

Eugene Kuleshov
Eugene Kuleshov

Reputation: 31795

The surefire-report:report and surefire-report:report-only goals will generate HTML report for Maven test execution. As part of Maven site generation it could be further styled using one of the skins

Upvotes: 5

Related Questions