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