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

Issue #7802: Resolve Pitest Issues - CustomImportOrderCheck (1) #7826

Merged
merged 1 commit into from Mar 12, 2020

Conversation

wltan
Copy link
Contributor

@wltan wltan commented Mar 11, 2020

In #7802 (comment) it was found that the current unit tests are not well-designed to kill the mutations produced by pitest. Copied here for reference:

We already have unit tests in CustomImportOrderCheckTest.java that covers the different cases of regex matching, but the problem is that the input file is currently designed such that even if the test were to "fail" with the mutation, the output (violations) does not change, and so the tests incorrectly pass.

This PR aims to address that problem by enhancing the existing unit tests.

Pitest report for this branch: https://wltan.github.io/checkstyle-reports/2020-03-12/202003121402/

Both lines 815 and 816 no longer cause issues under pitest. It appears that this PR can solve both #7802 and #7806 at the same time.

Copy link
Member

@rnveach rnveach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 item.

@wltan wltan force-pushed the customimport-pitest1-improved branch 3 times, most recently from ca52e6d to 2bb5be6 Compare March 12, 2020 06:21
@wltan wltan force-pushed the customimport-pitest1-improved branch from 2bb5be6 to beee255 Compare March 12, 2020 10:37
Copy link
Member

@rnveach rnveach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be merged when CI passes. Please note to merger, this closes 2 issues, not just 1.

@rnveach rnveach merged commit 91f13c1 into checkstyle:master Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants