Skip to content

Commit

Permalink
add pitest example
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Oct 16, 2016
1 parent 8a1db34 commit 38abd1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Expand Up @@ -14,13 +14,15 @@ buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.10'
}
}

apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'org.jetbrains.dokka'
apply plugin: "info.solidsoft.pitest"

sourceCompatibility = 1.6

Expand All @@ -45,6 +47,13 @@ task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
from javadoc.destinationDir
}

pitest {
targetClasses = ['com.github.sanity.pav.*'] //by default "${project.group}.*"
threads = 8
outputFormats = ['HTML']
jvmArgs = ['-Xmx1024m']
}

artifacts {
archives javadocJar
}
1 change: 1 addition & 0 deletions src/test/kotlin/com/github/sanity/pav/PAVSpec.kt
Expand Up @@ -17,6 +17,7 @@ class PAVSpec : FreeSpec() {
val mergedY = (2.0 * 3.0 + 5.0 * 6.0) / (3.0 + 6.0)
val mergedWeight = 3.0 + 6.0
a.merge(b) shouldEqual Point(mergedX, mergedY, mergedWeight)

}
}

Expand Down

0 comments on commit 38abd1e

Please sign in to comment.