-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate build from execution & report generation #319
Comments
I don't know your exact use case, but |
The exact use case would be building all of the test binaries together, with cache available, then separating them to:
|
If you want to run the built binaries in containors you need to bind the target directory and map LLVM_PROFILE_FILE env var properly, but |
Alright, I'll try it out and see how it goes. |
I checked locally and something like the following worked: source <(cargo llvm-cov show-env --export-prefix)
cargo build
docker run --rm -d -it \
-v "$(pwd)":/workdir \
--env LLVM_PROFILE_FILE="${LLVM_PROFILE_FILE/"$(pwd)"//workdir}" \
ubuntu sh -c '/workdir/target/debug/<bin-name> --version'
cargo llvm-cov report --html |
The assumption is that I provide all the test binaries paths, which requires build result parsing the build results. |
For |
I did a setup with nextest, since it provides a better way to package test binaries, here's the attempt, it doesn't generate profraws and I'm not sure why |
Closing -- this seems to be solved nextest-rs/nextest#1036 (comment) |
This is a mirror issue to another coverage tool xd009642/tarpaulin#1352
Is it possible to build binaries, then move them to special environments (like docker images) and run coverage and reports there separately?
The text was updated successfully, but these errors were encountered: