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.
Download a binary for your platform from releases
And convert Surefire XML reports to CSV
sure \
-src ~/code/yourproject \
-dest ./here
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
- Was only tested on Maven Surefire reports of schema "https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd"
I created maven-surefire-test-durations to understand what the Surefire timings account for.