hcoles / pitest

State of the art mutation testing system for the JVM
Apache License 2.0
1.67k stars 355 forks source link

Mutation testing (and reporting) across Maven modules #376

Open NicoleRauch opened 7 years ago

NicoleRauch commented 7 years ago

In my the test code for some part of the production code is spread across several modules. PITest only mutation tests the code in each module by using the tests in that same module, not in the others. This way, the Mutation coverage (and also the line coverage) is useless because some tests are not considered.

To give you an example: We have modules

Is there a way to configure PIT to run the additional tests as well?

szpak commented 7 years ago

@NicoleRauch I don't know about Maven, but having your project migrated to Gradle it should be achievable in PIT plugin for Gradle.

NicoleRauch commented 7 years ago

@szpak Thanks for the pointer! Unfortunately I cannot migrate to Gradle for various reasons, but good to see others have the same needs.

Does anybody know whether it would somehow be possible to make the same mechanism work in Maven?

oscarlvp commented 6 years ago

@NicoleRauch please take a look at pitmp a plugin to target similar situations.

AssafKatz3 commented 6 years ago

@oscarlvp I tried to use it in order to solve my tree:

But pitmp didn't help (NullPointerException on PmpMojo.updateTargetClasses).

Other ideas will be welcome.

szpak commented 6 years ago

@AssafKatz3 Out of the main question, have you reported that issue in their issue tracker? Without that they definitely will not fix it (unless someone else report the same problem).

AssafKatz3 commented 6 years ago

@szpak Good idea, done, thanks