Skip to content

Add an option to only check packages that are in a diff but ignoring content of diff otherwise #608

Description

@sandersaares

We have found that diffs on their own are not useful in large packages - file A changing will often break logic in file B. We do not therefore want to use diffs to select which files/lines to mutate.

However, diffs are still very useful in large workspaces to detect which packages to mutate. A single PR might only touch 5 packages out of 50, which is considerable time savings.

It is therefore desirable to have a mode of operation where cargo-mutants only looks at the diff to identify the packages in the workspace that need to be mutated, but ignores the actual files/lines.

Today we solve this with a custom wrapper script but this feels like a generally useful feature that could be natively supported by cargo-mutants.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions