cargo-mutants icon indicating copy to clipboard operation
cargo-mutants copied to clipboard

Option to run alternative or additional test commands

Open sourcefrog opened this issue 1 year ago • 1 comments

In some trees it would be helpful to configure an additional or alternative test command rather than cargo test.

Possibly there should be an option to not run cargo test at all, in cases where the shell command is enough?

This probably isn't too hard, at least assuming that a fixed shell command is sufficient. cargo-mutants has some logic to compose cargo test commands but perhaps that's just not needed for external tests.

sourcefrog avatar Sep 13 '24 15:09 sourcefrog

I'm taking a stab at this in my free time, I'll throw up a PR when I have something working :)

Deadairx avatar Sep 16 '24 14:09 Deadairx

This would be really useful to run both doc tests cargo test and tests in examples cargo test --examples. It is currently not possible to run both with a single cargo test command.

LHolten avatar Dec 22 '25 11:12 LHolten