Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teleivo/maven-surefire-reports-to-csv
Convert Maven surefire test reports from XML to CSV
https://github.com/teleivo/maven-surefire-reports-to-csv
maven surefire surefire-reporting
Last synced: about 3 hours ago
JSON representation
Convert Maven surefire test reports from XML to CSV
- Host: GitHub
- URL: https://github.com/teleivo/maven-surefire-reports-to-csv
- Owner: teleivo
- License: mit
- Created: 2021-10-29T11:50:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-09T17:34:26.000Z (9 months ago)
- Last Synced: 2024-04-16T07:52:47.460Z (7 months ago)
- Topics: maven, surefire, surefire-reporting
- Language: Go
- Homepage:
- Size: 114 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sure (Maven Surefire Reports To CSV)
[![Build and Test](https://github.com/teleivo/maven-surefire-reports-to-csv/actions/workflows/build_test.yml/badge.svg)](https://github.com/teleivo/maven-surefire-reports-to-csv/actions/workflows/build_test.yml)
[![golangci-lint](https://github.com/teleivo/maven-surefire-reports-to-csv/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/teleivo/maven-surefire-reports-to-csv/actions/workflows/golangci-lint.yml)
[![codecov](https://codecov.io/gh/teleivo/maven-surefire-reports-to-csv/branch/main/graph/badge.svg?token=1VFP7UVS4Z)](https://codecov.io/gh/teleivo/maven-surefire-reports-to-csv)
[![Release](https://img.shields.io/github/release/teleivo/maven-surefire-reports-to-csv.svg)](https://github.com/teleivo/maven-surefire-reports-to-csv/releases/latest)
[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg)](https://github.com/goreleaser)`sure` helps analyze test count and duration in Java projects built using
[Maven](https://maven.apache.org/) and the
[Maven Surefire Plugin](https://maven.apache.org/surefire/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](https://github.com/teleivo/maven-surefire-reports-to-csv/releases)And convert Surefire XML reports to CSV
```sh
sure \
-src ~/code/yourproject \
-dest ./here
```### Compile
If you have [Go](https://golang.org/) installed and want to compile yourself
:smile: you canRun it directly using
```sh
go run main.go \
-src ~/code/yourproject \
-dest ./here
```Or build a binary first
```sh
go build -o sure
```## Limitation
* Was only tested on Maven Surefire reports of schema
"https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd"## Related
I created
[maven-surefire-test-durations](https://github.com/teleivo/maven-surefire-test-durations)
to understand what the Surefire timings account for.