12个版本 (2个稳定版)
| 1.0.3 | 2023年9月2日 |
|---|---|
| 0.1.10 | 2023年4月26日 |
| 0.1.7 | 2022年10月1日 |
| 0.1.6 | 2022年4月16日 |
| 0.1.3 | 2021年10月27日 |
#75 in 测试
每月525次下载
65KB
1K SLoC
gitlab-report
一个命令行工具,用于从cargo JSON输出生成与GitLab兼容的报告。
支持的格式
| 输入 | 输出 |
|---|---|
| 测试 | JUnit |
| 测试 | OpenMetrics |
| clippy | Code Climate |
| clippy | OpenMetrics |
| 基准 | OpenMetrics |
| 审计 | GitLab安全报告(SAST) |
| 审计 | GitLab安全报告(依赖项扫描) |
| geiger | GitLab安全报告(SAST) |
| geiger | GitLab安全报告(依赖项扫描) |
| fmt | - |
用法
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
依赖项
~2.9–4MB
~73K SLoC