#gitlab #reports #cargo #json #output #format-json #generate

app gitlab-report

Generates GitLab reports from cargo's JSON output

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

#54 in Testing

Download history 7/week @ 2023-12-22 26/week @ 2023-12-29 24/week @ 2024-01-05 44/week @ 2024-01-12 49/week @ 2024-01-19 111/week @ 2024-01-26 208/week @ 2024-02-02 181/week @ 2024-02-09 250/week @ 2024-02-16 323/week @ 2024-02-23 278/week @ 2024-03-01 539/week @ 2024-03-08 289/week @ 2024-03-15 88/week @ 2024-03-22 99/week @ 2024-03-29 116/week @ 2024-04-05

654 downloads per month

MIT license

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

~3–4MB
~75K SLoC