fabro/lib/crates/fabro-cli/tests/it
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
..
cmd test: preserve LLVM_PROFILE_FILE across env_clear in CLI tests 2026-04-18 15:05:32 -04:00
scenario ci: switch clippy to pinned nightly, clean up workspace lints 2026-04-16 18:59:11 -04:00
support test: preserve LLVM_PROFILE_FILE across env_clear in CLI tests 2026-04-18 15:05:32 -04:00
workflow ci: switch clippy to pinned nightly, clean up workspace lints 2026-04-16 18:59:11 -04:00
main.rs chore(lint): fix all clippy warnings including --tests 2026-04-10 10:16:24 -04:00