fabro/lib/crates/fabro-cli
Bryan Helmkamp a77c45207f
test: preserve LLVM_PROFILE_FILE across env_clear in CLI tests
Integration tests spawn the fabro binary as a subprocess and call
env_clear() for isolation, which strips LLVM_PROFILE_FILE. Under
cargo-llvm-cov this dropped subprocess coverage into orphaned
default.profraw files in tempdirs instead of the merged profile.

Add a preserve_coverage_env! macro in fabro-test and call it after
each env_clear() in apply_test_isolation, LightweightCli, and the
exec.rs sites. No-op when the env var is unset (normal test runs).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:05:32 -04:00
..
src feat(cli): surface debug build profile in version output 2026-04-18 09:44:54 -04:00
tests/it test: preserve LLVM_PROFILE_FILE across env_clear in CLI tests 2026-04-18 15:05:32 -04:00
build.rs feat(cli): surface debug build profile in version output 2026-04-18 09:44:54 -04:00
Cargo.toml fix(musl): vendor openssl for musl targets 2026-04-18 01:14:02 -04:00