#gitlab #reports #cargo #security-testing #cargo-test #json #cargo-command

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

#97 in Testing

Download history 193/week @ 2024-07-24 79/week @ 2024-07-31 63/week @ 2024-08-07 29/week @ 2024-08-14 26/week @ 2024-08-21 62/week @ 2024-08-28 93/week @ 2024-09-04 72/week @ 2024-09-11 157/week @ 2024-09-18 258/week @ 2024-09-25 145/week @ 2024-10-02 131/week @ 2024-10-09 151/week @ 2024-10-16 66/week @ 2024-10-23 47/week @ 2024-10-30 89/week @ 2024-11-06

358 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

~2.8–4MB
~72K SLoC