12 releases (2 stable)
1.0.3 | Sep 2, 2023 |
---|---|
0.1.10 | Apr 26, 2023 |
0.1.7 | Oct 1, 2022 |
0.1.6 | Apr 16, 2022 |
0.1.3 | Oct 27, 2021 |
#97 in Testing
358 downloads per month
65KB
1K
SLoC
gitlab-report
A command line utility to generate GitLab compatible reports from cargo JSON output.
Supported formats
Input | Output |
---|---|
test | JUnit |
test | OpenMetrics |
clippy | Code Climate |
clippy | OpenMetrics |
bench | OpenMetrics |
audit | GitLab Security Report (SAST) |
audit | GitLab Security Report (Dependency Scanning) |
geiger | GitLab Security Report (SAST) |
geiger | GitLab Security Report (Dependency Scanning) |
fmt | - |
Usage
cargo test --no-fail-fast -- -Z unstable-options --format json | gitlab-report -p test > report.xml
cargo clippy --message-format=json | gitlab-report -p clippy > gl-code-quality-report.json
cargo bench -- -Z unstable-options --format json | gitlab-report -p bench > metrics.txt
cargo audit --json | gitlab-report -p audit > gl-sast-report.json
Dependencies
~2.8–4MB
~72K SLoC