#gitlab #report #json #cargo #command-line-utility #utility

app gitlab-report

Generates GitLab reports from cargo's JSON output

8 releases

0.1.7 Oct 1, 2022
0.1.6 Apr 16, 2022
0.1.5 Feb 19, 2022
0.1.4 Jan 29, 2022
0.1.1 Sep 29, 2021

#146 in Development tools

Download history 68/week @ 2022-08-03 62/week @ 2022-08-10 59/week @ 2022-08-17 103/week @ 2022-08-24 60/week @ 2022-08-31 88/week @ 2022-09-07 56/week @ 2022-09-14 165/week @ 2022-09-21 176/week @ 2022-09-28 188/week @ 2022-10-05 554/week @ 2022-10-12 446/week @ 2022-10-19 212/week @ 2022-10-26 148/week @ 2022-11-02 186/week @ 2022-11-09 65/week @ 2022-11-16

653 downloads per month

MIT license

51KB
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.3–3MB
~62K SLoC