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

pitest: increase mutation coverage for javadoc profile to 100% #6295

Closed
rnveach opened this issue Dec 17, 2018 · 5 comments · Fixed by #11774
Closed

pitest: increase mutation coverage for javadoc profile to 100% #6295

rnveach opened this issue Dec 17, 2018 · 5 comments · Fixed by #11774
Labels
approved has bounty issue has some money incentive to fix it, https://www.bountysource.com/teams/checkstyle/issues miscellaneous

Comments

@rnveach
Copy link
Member

rnveach commented Dec 17, 2018

We should increase coverage for javadoc profile up to 100%.
This issue is a subtask of #3708


@rnveach
Copy link
Member Author

rnveach commented Dec 25, 2018

I can't reproduce these mutations surviving locally. The part that is being mutated is tagText after the ->.

checkstyle/.ci/pitest.sh

Lines 119 to 120 in 4490111

"JavadocTagInfo.java.html:<td class='covered'><pre><span class='survived'> .collect(Collectors.toMap(JavadocTagInfo::getName, tagName -&#62; tagName)));</span></pre></td></tr>"
"JavadocTagInfo.java.html:<td class='covered'><pre><span class='survived'> .collect(Collectors.toMap(JavadocTagInfo::getText, tagText -&#62; tagText)));</span></pre></td></tr>"

mutated return of Object value for com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocTagInfo::lambda$1 to ( if (x != null) null else throw new RuntimeException ) → SURVIVED

@romani
Copy link
Member

romani commented Dec 25, 2018

Did you try this on Windows or Linux?
I remember that u generated such output on my local Linux, but on some old version of pitest

@rnveach
Copy link
Member Author

rnveach commented Dec 26, 2018

Running pitest produces it on windows and linux, but I can't reproduce it using eclipse on Windows. I get exceptions when replacing the code with null. I haven't tried linux.

rnveach added a commit to rnveach/checkstyle that referenced this issue Dec 26, 2018
rnveach added a commit to rnveach/checkstyle that referenced this issue Dec 27, 2018
rnveach added a commit to rnveach/checkstyle that referenced this issue Dec 27, 2018
rnveach added a commit to rnveach/checkstyle that referenced this issue Dec 27, 2018
@romani romani added the has bounty issue has some money incentive to fix it, https://www.bountysource.com/teams/checkstyle/issues label Apr 13, 2019
strkkk added a commit to strkkk/checkstyle that referenced this issue Dec 17, 2020
@ahmedmohiduet
Copy link

Hello, let me know if this issue still has bounty open. Would love to contribute

@romani
Copy link
Member

romani commented Jan 31, 2021

@ahmedmohiduet , still open, please fix issue and get a bounty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved has bounty issue has some money incentive to fix it, https://www.bountysource.com/teams/checkstyle/issues miscellaneous
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants