Skip to content

vogonor/pitmutation-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pitmutation-jenkins

release Build Status

PIT Mutation reporting plugin for Jenkins.

Set up as a post-build step, after the PIT mutation tests have been run.

Configure report path, e.g. target/pit-reports/**/mutations.xml for a Maven build or build/reports/pitest/mutations.xml for a Gradle build.

Jenkins Pipeline

You can use the following step in pipeline to use this plugin in pipeline:

step([$class: 'PitPublisher', mutationStatsFile: 'bla/**/mutations.xml', minimumKillRatio: 50.00, killRatioMustImprove: false])

The plugin needs the XML and HTML output from PIT. Also make sure that a clean target is executed before building, otherwise PIT will keep all of the old reports and it may not pick up the right one.

The report shows mutation statistics with the change since the last successful build, and you can drill down to the annotated source code at class level to see what mutations happened on each line.

Releasing

Run mvn release:prepare release:perform but ensure that your Maven settings.xml has been set up with your jenkins-ci.org credentials

About

PIT Mutation reporting plugin for Jenkins

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.5%
  • CSS 2.8%
  • HTML 0.7%