Can I run Pitest on only 2 test files (no mutations found issue)?

45 views Asked by At

So I'm having issues with the following error when running Pitest "Skipping coverage and analysis as no mutations found". The advice I've seen so far seems to be editing the maven or gradle files, but I don't know/use maven or gradle.

All I have is a project in eclipse with the necessary libraries, and 2 lone test files that test the included jfreechart library. Both files run 100% passes on junit so that isn't an issue. Is there any way to resolve this problem? I feel like there's some stupid I'm getting wrong but I can't find any relevant information for my case.

Any help really appreciated

1

There are 1 answers

0
henry On

It's not clear how you are running pitest, but it will not mutate code in dependencies, only code defined within your project.

If you wish to mutate jfreechart you will need to the code from

https://github.com/jfree/jfreechart

The project looks to be built with maven, so you can configure pitest by following the documentation at

https://pitest.org/quickstart/maven/