Skip to content

Investigate pitest tool #3271

@romani

Description

@romani

Assigned to @Efremenkov .

Pitest: http://pitest.org/quickstart/maven/

Report: http://checkstyle.sourceforge.net/reports/pitest/
Report built for Commit: 5a0a304
Report generation: 4h (in 4thread, full usage of all cores and memory)

Code change:

05:44 $ git diff
diff --git a/pom.xml b/pom.xml
index 903337a..d20f4df 100644
--- a/pom.xml
+++ b/pom.xml
@@ -989,6 +989,20 @@
         </execution>
       </executions>
     </plugin>
+    <plugin>
+    <groupId>org.pitest</groupId>
+    <artifactId>pitest-maven</artifactId>
+    <version>1.1.10</version>
+    <configuration>
+        <targetClasses>
+            <param>com.puppycrawl.tools.checkstyle*</param>
+        </targetClasses>
+        <targetTests>
+            <param>com.puppycrawl.tools.checkstyle*</param>
+        </targetTests>
+        <threads>4</threads>
+    </configuration>
+</plugin>
     </plugins>
   </build>

command to generate report: mvn test org.pitest:pitest-maven:mutationCoverage

report will be at: firefox target/pit-reports/2016XXXXXXXXX/index.html

TODO:

  • investigate missed point of UTs, fix them.
  • investigate usage in CI to enforce quality of testing in PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions