You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am not seeing any collected coverage data from child executables despite using --follow-exec (with --engine llvm, otherwise I get a segfault).
I know that this same workflow used to work in an earlier combination of rustc+tarpaulin, because I had these steps written down.
To Reproduce
For now, the only repro I have uses my own project: git clone https://github.com/DenialAdams/roland.git RUSTFLAGS="-Cinstrument-coverage -Cstrip=none -Clink-dead-code -Cdebuginfo=2" cargo build --bin rolandc_cli cargo tarpaulin --skip-clean --implicit-test-threads --follow-exec --engine llvm --command build --bin roland_test_runner -o html -- {{justfile_directory()}}/tests/ --cli {{justfile_directory()}}/target/debug/rolandc_cli
Observe that coverage data is found only for the test runner itself. There is no test data accumulated for the compiler:
The assumption I am making in the title could be wrong. I realized that it's possible that I am getting the flags wrong in step 2 of the reproduction. Or maybe something else... Let me know if I can provide any more info.
Describe the bug
I am not seeing any collected coverage data from child executables despite using
--follow-exec
(with--engine llvm
, otherwise I get a segfault).I know that this same workflow used to work in an earlier combination of rustc+tarpaulin, because I had these steps written down.
To Reproduce
For now, the only repro I have uses my own project:
git clone https://github.com/DenialAdams/roland.git
RUSTFLAGS="-Cinstrument-coverage -Cstrip=none -Clink-dead-code -Cdebuginfo=2" cargo build --bin rolandc_cli
cargo tarpaulin --skip-clean --implicit-test-threads --follow-exec --engine llvm --command build --bin roland_test_runner -o html -- {{justfile_directory()}}/tests/ --cli {{justfile_directory()}}/target/debug/rolandc_cli
Observe that coverage data is found only for the test runner itself. There is no test data accumulated for the compiler:
Expected behavior
Coverage is collected for the spawned executables in addition to the main executable under test.
Thanks very much :)
The text was updated successfully, but these errors were encountered: