Skip to content
Snippets Groups Projects
Verified Commit b3ba3282 authored by arturomf94's avatar arturomf94
Browse files

Use `maint/with_coverage.sh` in coverage job

parent 3213b893
No related branches found
No related tags found
1 merge request!221Add test coverage tracking with CI/CD
......@@ -60,12 +60,13 @@ coverage:
- rustup toolchain add nightly
- rustup default nightly
- rustup component add llvm-tools-preview
- cargo test --verbose --target x86_64-unknown-linux-gnu --all-features
# generate html report
- cargo install grcov
- grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t html --branch --ignore-not-existing --ignore "*cargo*" -o ./coverage/
# generate cobertura report for gitlab integration
- grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t cobertura --branch --ignore-not-existing --ignore "*cargo*" -o coverage.xml
# Generate report
- ./maint/with_coverage.sh cargo test --verbose --all-features
- ./maint/with_coverage.sh -f cobertura -o coverage.xml cargo test --verbose --all-features
# - grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t html --branch --ignore-not-existing --ignore "*cargo*" -o ./coverage/
# # generate cobertura report for gitlab integration
# - grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t cobertura --branch --ignore-not-existing --ignore "*cargo*" -o coverage.xml
artifacts:
paths:
- 'coverage'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment