Replies: 1 comment
-
Thanks, yep, it does not really understand any
Actually this is interesting and a bit different from just knowing not to traverse the mod statement if the feature is off. I'll have to think about that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project that looks roughly like this:
where
libs.rs
containsand
other_file
contains both logic and tests.Curently
cargo mutants --no-default-features
generates mutants inother_file.rs
that will not be compiled and not be tested. This means lost time testing nothing and investigating wrong misses.I guess it's good practice the run
cargo mutants
with--all-features
and it solves this issue but having feedback on mutations that were discarded (at compilation or ideally at generation) due to feature selection would be valuable imho.You can find a concrete example in this crate: https://github.com/Azkellas/mesh_to_sdf/tree/main/mesh_to_sdf where
point/impl_*.rs
file are feature gated to avoid pulling dependencies.Beta Was this translation helpful? Give feedback.
All reactions