Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install gitlab-report
It will make the gitlab-report command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall gitlab-report uninstalls.
Back to the crate overview .
Readme
gitlab-report
A command line utility to generate GitLab compatible reports from cargo JSON output.
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