pitest-mutation-testing-elements-plugin

Write Pitest test results to mutation-testing-elements HTML reporter

License

License

GroupId

GroupId

io.github.wmaarts
ArtifactId

ArtifactId

pitest-mutation-testing-elements-plugin
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

pitest-mutation-testing-elements-plugin
Write Pitest test results to mutation-testing-elements HTML reporter
Project URL

Project URL

https://github.com/Wmaarts
Source Code Management

Source Code Management

https://github.com/Wmaarts/pitest-mutation-testing-elements-plugin

Download pitest-mutation-testing-elements-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.wmaarts/pitest-mutation-testing-elements-plugin/ -->
<dependency>
    <groupId>io.github.wmaarts</groupId>
    <artifactId>pitest-mutation-testing-elements-plugin</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.wmaarts/pitest-mutation-testing-elements-plugin/
implementation 'io.github.wmaarts:pitest-mutation-testing-elements-plugin:0.4.0'
// https://jarcasting.com/artifacts/io.github.wmaarts/pitest-mutation-testing-elements-plugin/
implementation ("io.github.wmaarts:pitest-mutation-testing-elements-plugin:0.4.0")
'io.github.wmaarts:pitest-mutation-testing-elements-plugin:jar:0.4.0'
<dependency org="io.github.wmaarts" name="pitest-mutation-testing-elements-plugin" rev="0.4.0">
  <artifact name="pitest-mutation-testing-elements-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.wmaarts', module='pitest-mutation-testing-elements-plugin', version='0.4.0')
)
libraryDependencies += "io.github.wmaarts" % "pitest-mutation-testing-elements-plugin" % "0.4.0"
[io.github.wmaarts/pitest-mutation-testing-elements-plugin "0.4.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.pitest : pitest-entry jar 1.6.4
com.google.code.gson : gson jar 2.8.6
io.stryker-mutator : mutation-testing-elements jar 1.7.0

test (3)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter jar 5.7.1
org.assertj : assertj-core jar 3.14.0
org.mockito : mockito-core jar 3.8.0

Project Modules

There are no modules declared in this project.

Maven Central Build status

pitest-mutation-testing-elements-plugin

A pitest plugin that maps pitest results to stryker's mutation-testing-elements.

How to use 💁

  • Add the dependency to the pitest plugin
  • Configure the outputFormat to be HTML2

Maven

Add the dependency and configure the outputFormat to use the plugin:

<plugin>
    <groupId>org.pitest</groupId>
    <artifactId>pitest-maven</artifactId>
    <version>1.4.10</version>
    <dependencies>
        <dependency>
            <groupId>io.github.wmaarts</groupId>
            <artifactId>pitest-mutation-testing-elements-plugin</artifactId>
            <version>${pitest-mutation-testing-elements-plugin.version}</version>
        </dependency>
    </dependencies>
    <configuration>
        <outputFormats>
            <format>HTML2</format>
        </outputFormats>
    </configuration>
</plugin>

Run like you would normally run pitest:

mvn org.pitest:pitest-maven:mutationCoverage

Gradle

Follow the setup for the gradle-pitest-plugin, then add the plugin as a pitest dependency in your build.gradle:

buildscript {
   repositories {
       mavenCentral()
   }
   configurations.maybeCreate('pitest')
   dependencies {
       classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.4.7'
       pitest 'io.github.wmaarts:pitest-mutation-testing-elements-plugin:${pluginVersion}'
   }
}

And configure the output format:

apply plugin: 'info.solidsoft.pitest'

pitest {
    outputFormats = ['HTML2']
}

Preview 🔮

This is a result of pitest run on this plugin. (More previews here) preview

Versions

Version
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0