Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only test mutants that are covered by changed test files #1068

Closed
Stijn-Rutten opened this issue May 6, 2020 · 0 comments · Fixed by #1101
Closed

Only test mutants that are covered by changed test files #1068

Stijn-Rutten opened this issue May 6, 2020 · 0 comments · Fixed by #1101
Assignees
Labels

Comments

@Stijn-Rutten
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Right now the diff feature resets all the mutants when a test is changed.

Describe the solution you'd like
The current coverage analysis makes it possible to check which tests cover which mutants. I would extend this information by adding a property TestFilename to TestListDescription . This way we can check if the TestFilename equals one of the changed testfiles we using the GitDiffProvider. Whenever the tests are changed, the result status can than be reset to NotRun.

Describe alternatives you've considered
Ideally I would do like to check for a modified test which mutants it covers. This is however not a possibility because of the limitations of libgit2sharp. libgit2/libgit2sharp#1790 should fix this limitation. In the meanwhile however this is a good alternative

Additional context
This feature relies on #1026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants