Tests are running, but cargo-mutants detects 0 mutants to test #385
-
Hi! I'm struggling a bit to make cargo-mutants working. Somehow I cannot make it working in the same way as I run my tests. Output after running ~/a/b/c/d/myproject > cargo +stable mutants
Found 0 mutants to test
WARN No mutants found under the active filters Output after running ~/a/b/c/d/myproject > cargo +stable test
running 19 tests
test tests::xx::abc ... ok
test tests::xx::abcd ... ok
... Thank you very much, for your help, and for the awesome tooling! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The discovered mutants depend on the source of your tree, so without knowing anything about that it's hard to say. Is there anything unusual about it? Can you reproduce this in a smaller tree that you can share? Is there any config in What does Can you share the debug output from |
Beta Was this translation helpful? Give feedback.
Actually my link there was to a different similarly-named crate.
You're running it in https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-rococo/src/lib.rs.
All of the code in this crate is
#cfg[test]
and also there are no functions in it, so there's nothing to mutate. Try running it in a crate that has some non-test code.