Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add code coverage #142

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ commands:
sudo apt-get update
sudo apt-get install -y openjdk-11-jre zlib1g-dev

install_cargo-llvm-cov:
description: Install cargo-llvm-cov for code coverage
steps:
- run:
name: Install cargo-llvm-cov for code coverage
command: |
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov

jobs:
fmt:
docker:
Expand Down Expand Up @@ -205,12 +214,15 @@ jobs:
- rust_components
- cache_restore
- install_packages
- install_cargo-llvm-cov
- run:
name: Cargo test
command: cargo test --all-features --all-targets
command: cargo llvm-cov --all-features --all-targets --html
- cache_save
- store_artifacts:
path: proptest-regressions
- store_artifacts:
path: target/llvm-cov

test-kafka:
# setup multiple docker images (see https://circleci.com/docs/2.0/configuration-reference/#docker)
Expand Down