Skip to content

Convert Maven surefire test reports from XML to CSV

License

Notifications You must be signed in to change notification settings

teleivo/maven-surefire-reports-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sure (Maven Surefire Reports To CSV)

Build and Test golangci-lint codecov Release Powered By: GoReleaser

sure helps analyze test count and duration in Java projects built using Maven and the Maven Surefire Plugin.

Maven Surefire Plugin generates reports after running tests in a Maven module. Surefire can be configured to write the reports in XML. sure allows you to convert them into CSV. This way you can easily analyze the number of tests, their duration either individually or for example per Maven module in any tool you whish.

Usage

Download a binary for your platform from releases

And convert Surefire XML reports to CSV

sure \
  -src ~/code/yourproject \
  -dest ./here

Compile

If you have Go installed and want to compile yourself :smile: you can

Run it directly using

go run main.go \
  -src ~/code/yourproject \
  -dest ./here

Or build a binary first

go build -o sure

Limitation

Related

I created maven-surefire-test-durations to understand what the Surefire timings account for.