Skip to content

tvcsantos/pitest-junit5-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JUnit 5 Plugin

Adds support to pitest for JUnit 5 and the Jupiter api.

Versions

Maven Central

  • 0.5-0.11 requires pitest 1.4.0 or above
  • 0.4 requires pitest 1.3.2 or above
  • 0.3 requires pitest 1.3.0 or 1.3.1
  • 0.2 requires pitest 1.2.5

Usage

The plugin has been built against JUnit platform 1.5.0 - you may encounter issues if you use it with a different version.

To activate the plugin it must be placed on the classpath of the pitest tool (not on the classpath of the project being mutated).

Maven

    <plugins>
      <plugin>
        <groupId>org.pitest</groupId>
        <artifactId>pitest-maven</artifactId>
        <version>1.4.9</version>
        <dependencies>
          <dependency>
            <groupId>org.pitest</groupId>
            <artifactId>pitest-junit5-plugin</artifactId>
            <version>0.10-SNAPSHOT</version>
          </dependency>
        </dependencies>
      </plugin>
   </plugins>

For Pitest configuration options, have a look at http://pitest.org/quickstart/maven/.

Gradle

buildscript {
   repositories {
       mavenCentral()
   }
   configurations.maybeCreate("pitest")
   dependencies {
       classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.4.5'
       pitest 'org.pitest:pitest-junit5-plugin:0.10'
   }
}

apply plugin: "info.solidsoft.pitest"

pitest {
    pitestVersion = "1.4.9"
    testPlugin = "junit5"
    targetClasses = ['our.base.package.*']  // by default "${project.group}.*"
}

See gradle-pitest-plugin documentation for more configuration options.

About

Plugin originally created by @tobiasstadler.

About

JUnit 5 test framework support for Pitest

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.7%
  • Gherkin 0.3%