Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 891 Bytes

File metadata and controls

23 lines (15 loc) · 891 Bytes

pitmutation-jenkins

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.

UPDATED

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.