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

Separate planning commands from running them?

Open sourcefrog opened this issue 1 year ago • 0 comments

As the logic for what commands to run gets more complex it might be useful to separate the logic that plans commands to run, from the code that actually runs them.

Then we could write some tests that only inspect the generated commands without actually running them, which would make the test suite faster. However the speed would come at the risk of the tests being perhaps less realistic: we wouldn't catch cases where the cargo command semantics don't do what we expect.

Also, this might just make the code easier to follow.

sourcefrog avatar Nov 11 '24 15:11 sourcefrog