Open Provence613 opened 4 years ago
Hi @Provence613,
I think the key to success is the usage of the JUnit 5 plugin for pitest. I'm wondering why you didn't get the
Error generating coverage. Please check that your classpath contains modern JUnit 4 or PIT test plugin for other test tool (JUnit 5, TestNG, ...) is enabled.
error message. You might have added JUnit 4 to the classpath, manually?!
But commons lang uses JUnit 5 and it seems to me you tried a recent version. I've tried it myself and created a branch in my own fork. I had to @Disable
two tests in order to get it working. But those tests already seem to have special treatment for jacoco coverage and might need another hand crafted assertion when pitest coverage is in place. Afterwards pitest ran fine with 85% mutations killed. Hopefully my commit helps you to fix your own copy/project.
Please comment here if you have another problem or error instead or if this doesn't solve your problem. Please report back and close the issue if my comments solved your question.
Thank you for your answer. According to your prompt, I modified the version of junit, but after performing the mutation test, the mutation score is 0. What version of commons-lang are you using?
I've created the branch based on the latest master version of commons-lang which is roughly "3.10.1-SNAPSHOT"
Do you have a fork of commons-lang yourself or can you upload your code / project to github? Then I might take a look at it. Or you could checkout my fork of commons-lang and try your experiments from there, if you like.
Actually I do have the same issue. I set up a test project here: https://github.com/johannesn/pittestskippingtests and added a question at stackoverflow: https://stackoverflow.com/questions/66154859/pitest-skips-tests-in-ant
I'm new to Pitest.I have a problem when I run the PIT.When I run the "mvn org.pitest: pitest-maven: mutationCoverage" command in the console, the console displays the following log:
My PIT configuration is as follows:
How to solve this situation?