This repo is a minimal reproducible case for an issue I have with coverage not being generated when using the datatest_stable crate.
cargo install llvm-cov- Generate coverage
# at root of repo cargo llvm-cov --html --open - Observe no hits in
to_cover::main(despite 'Hello, world!' being printed to stdout) - Open
tests/datatest.rsand swap theharnessmacro with the main function provided - Generate coverage again (step 1).
- Observe hits in
to_cover::main.