hcoles / pitest

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

Mutation coverage calculation failed on apache/maven project #540

Open grolegor opened 5 years ago

grolegor commented 5 years ago

Steps to reproduce:

  1. git clone https://github.com/apache/maven.git (revision number - 9f07b0362fe8b6c82526e630dad64f798adc08d4 at the time of reproducing)
  2. mvn install All tests are success. Logs - mvn_install.log
  3. mvn org.pitest:pitest-maven:mutationCoverage Logs - mvn_mutationcoverage.log

Actual result: Coverage calculation failed with error:

[ERROR] Failed to execute goal org.pitest:pitest-maven:1.4.3:mutationCoverage (default-cli) on project maven-core: Execution default-cli of goal org.pitest:pitest-maven:1.4.3:mutationCoverage failed: 4 tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite.

Expected result: Mutation coverage must be calculated because all tests are success.

Environment: jdk: 1.8.0_181, maven: 3.3.9

dhiddiSk commented 5 years ago

Hello grolegor @grolegor , I'm also facing the same error which you have mentioned above. Can you please help me with solution if you had solved it. Thanks in advance. sai

grolegor commented 5 years ago

Hello @saigithub123. Unfortunately, I don't have any solution...