$ErrorActionPreference = "Stop"
$Env:LLVM_PROFILE_FILE="./target/debug/profraw/coverage-%p-%m.profraw"; rustup component add llvm-tools-preview
$Env:RUSTFLAGS="-C instrument-coverage"; cargo build
$Env:RUSTFLAGS="-C instrument-coverage"; cargo test
cargo install grcov
grcov . --binary-path ./target/debug/ -s . -t html --branch --ignore-not-existing --ignore "*cargo*" -o ./target/debug/coverage/
grcov . --binary-path ./target/debug/ -s . -t cobertura --branch --ignore-not-existing --ignore "*cargo*" -o ./target/debug/coverage/coverage.xml
type ./target/debug/coverage/coverage.json