I have a project with main crate and some nested crated that use workspace = ".." in respective Cargo.toml. I can run tests for each individual nested crate from the main project dir with cargo test --package=<crate-name>. I cannot however run cargo kcov in similar fashion - to check coverage for a single nested crate.
Of course I can run cargo from the nested crate directory, however because of workspace = "..", cargo exits with an error
error: root of a workspace inferred but wasn't a root
Could perhaps cargo-kcov support --package argument to solve this problem?
I have a project with main crate and some nested crated that use
workspace = ".."
in respectiveCargo.toml
. I can run tests for each individual nested crate from the main project dir withcargo test --package=<crate-name>
. I cannot however runcargo kcov
in similar fashion - to check coverage for a single nested crate.Of course I can run
cargo
from the nested crate directory, however because ofworkspace = ".."
, cargo exits with an errorCould perhaps
cargo-kcov
support--package
argument to solve this problem?Regards