File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ mkdir /tmp/cicd/$CI_PROJECT_ID/$CI_MERGE_REQUEST_IID/coverage
51
51
grcov . --binary-path ./target/release/ -s . -t lcov --llvm --branch --ignore-not-existing --ignore " *cargo*" --ignore " *examples*" -o /tmp/cicd/$CI_PROJECT_ID /$CI_MERGE_REQUEST_IID /coverage/coverage.info
52
52
53
53
# 修复grcov中结果不准的数据
54
- cargo install rust-client- covfix
55
- rust-client- covfix -o /tmp/cicd/$CI_PROJECT_ID /$CI_MERGE_REQUEST_IID /coverage/lcov-w-branch_correct.info /tmp/cicd/$CI_PROJECT_ID /$CI_MERGE_REQUEST_IID /coverage/coverage.info
54
+ cargo install rust-covfix
55
+ rust-covfix -o /tmp/cicd/$CI_PROJECT_ID /$CI_MERGE_REQUEST_IID /coverage/lcov-w-branch_correct.info /tmp/cicd/$CI_PROJECT_ID /$CI_MERGE_REQUEST_IID /coverage/coverage.info
56
56
57
57
# 生成增量覆盖率报告
58
58
python lcov_cobertura.py /tmp/cicd/$CI_PROJECT_ID /$CI_MERGE_REQUEST_IID /coverage/lcov-w-branch_correct.info --output /tmp/cicd/$CI_PROJECT_ID /$CI_MERGE_REQUEST_IID /coverage/coverage.xml
You can’t perform that action at this time.
0 commit comments