sourcefrog / cargo-mutants

:zombie: Inject bugs and see if your tests catch them!
https://mutants.rs/
MIT License
547 stars 27 forks source link

Support more cargo test flags #349

Closed xd009642 closed 5 months ago

xd009642 commented 5 months ago

So because of some issues running cargo mutants on tarpaulin I was hoping I could do cargo mutants --lib just like I can do cargo test --lib.

Generally, ime it's a good idea to replicate as many cargo test args as makes sense for a tool that shells out to testing as it can be beneficial to users to get the same flexibility (and it should be relatively low cost if it's just adding an extra arg to your cargo test invocation)

xd009642 commented 5 months ago

Oh I see if I do -- --lib then it works. Never mind then!

sourcefrog commented 5 months ago

I don't suppose we'd ever want these to mean something different in cargo-mutants so we could still define them and pass them through, to give a better experience when people try to use them.