-
Notifications
You must be signed in to change notification settings - Fork 21
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
Wrong mutation coverage reported #114
Comments
@oscarlvp hi, let me start by wishing you a happy new year 2020! Plenty of research success to you :) Is there any chance you could help us diagnose this issue? Thanks a lot |
@vmassol best wishes for you too! |
@mflorea is the build information available from your CI? I would like to inspect the report produced by PIT to see if the test is not being executed. |
I checked here https://ci.xwiki.org/view/All/job/xwiki-commons_pitest/683/org.xwiki.commons$xwiki-commons-diff-xml/console, it seems that the build does not keep the report. I will check it locally. |
Thanks @oscarlvp . Let me know if you need my help somewhere. |
@mflorea @vmassol This issue seems to be solved in version 0.12 of pitest-junit5-plugin. |
Thanks @oscarlvp . Actually I've upgraded to 0.12 yesterday but because I was testing if #117 would be fixed by it (it's not unfortunately). I didn't think about testing this issue. I'll try to do that tomorrow. Thanks a lot for investigating it! If you have some energy left, #117 is an even bigger issue for us ATM. We suddenly have plenty of test modules (junit5 ones probably) suddenly failing pitest/descartes. Could be a regression somewhere. Thanks! |
@oscarlvp the build errors you are reporting suggest you are building with a not very up to date version of xwiki-commons Also I just reverted reflections version because of a regressions in it so better pulling again. |
@tmortagne Sorry, the comment before was meant to be in #117 |
OK |
I confirm that it works fine with version 0.12. Thanks @oscarlvp ! |
Characteristics
Description
When I build xwiki-commons-diff-xml using:
I get:
The difference is quite significant. I checked the issues reported by Descartes and some of them seem to be wrong. For instance:
If I comment out the body of
AbstractXMLDiffMarker#applyPatch(org.w3c.dom.Element, org.xwiki.diff.Patch)
and run the tests I get lots of failures, including some from the test cases listed above (e.g.childrenDeletedInline.test
). So it looks like pitest/descartes is detecting the test cases correctly but not the fact that they fail.My test is a bit special because it uses:
But this hasn't created problems before. For instance, at this commit https://github.com/xwiki/xwiki-commons/tree/300ad03da64dad2749267a70d692e2dd14429351/xwiki-commons-core/xwiki-commons-diff/xwiki-commons-diff-xml the reported mutation coverage was OK (96). Basically the issue occurred at this commit xwiki/xwiki-commons@d2101de#diff-7ddf5975d3bead4599efe91f451a4934 but I don't see what could have caused the significant drop in mutation coverage.
Other files and URLs
Relationships
Help on issue template
Preview to follow the link or open file .github/ISSUE_DOC.md
The text was updated successfully, but these errors were encountered: