gitlab-report

Crates.iogitlab-report
lib.rsgitlab-report
version1.0.3
sourcesrc
created_at2021-09-29 18:37:58.254496
updated_at2023-09-02 09:11:40.021495
descriptionGenerates GitLab reports from cargo's JSON output
homepage
repositoryhttps://gitlab.com/TobiP64/rust-gitlab-ci
max_upload_size
id458286
size75,724
Tobias Pfeiffer (TobiP64)

documentation

README

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
Commit count: 50

cargo fmt