generate_coverage.sh 356 B

12345678
  1. #!/bin/bash
  2. export CARGO_INCREMENTAL=0
  3. export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
  4. export RUSTDOCFLAGS="-Cpanic=abort"
  5. cargo clean
  6. cargo +nightly build
  7. cargo +nightly test
  8. grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o coverage