cargo-all-features 1.12.0

A Cargo subcommand to build and test all feature flag combinations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd $SCRIPT_DIR/..

rm target/profraw/cargo-test-*.profraw
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='target/profraw/cargo-test-%p-%m.profraw' cargo test

rm -rf target/coverage
grcov target/profraw/. --binary-path ./target/debug/ -s . -t html --branch --ignore-not-existing -o target/coverage/html

popd

echo "Open target/coverage/html/index.html in a browser to view the coverage report!"