Skip to content

Commit

Permalink
pitest
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtizainy committed Jan 30, 2020
1 parent 41d09ec commit 9fff0e3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.firebase.appdistribution'

apply from: '../scripts/jacoco.gradle'
apply from: '../scripts/pitest.gradle'

def keystorePropertiesFile = rootProject.file("signing/keystore.properties")
def keystoreProperties = new Properties()
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ buildscript {
classpath 'com.google.gms:google-services:4.3.3'
classpath "org.jacoco:org.jacoco.core:0.8.5"
classpath 'com.google.firebase:firebase-appdistribution-gradle:1.3.1'
classpath 'pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.2'
}
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def fileFilter = [
"**/*Activity*"
]

def debugTree = fileTree(dir: "${buildDir}/tmp/kotlin-classes/debug", includes: ["**/*Activity*"])
def releaseTree = fileTree(dir: "${buildDir}/tmp/kotlin-classes/release", excludes: fileFilter)
def debugTree = fileTree(dir: "$buildDir/tmp/kotlin-classes/debug", includes: ["**/*Activity*"])
def releaseTree = fileTree(dir: "$buildDir/tmp/kotlin-classes/release", excludes: fileFilter)

def sourceDirs = files([mainSrc])
def classDirs = files([debugTree, releaseTree])
Expand Down
9 changes: 5 additions & 4 deletions scripts/pitest.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apply plugin: "pl.droidsonroids.pitest"
apply plugin: 'pl.droidsonroids.pitest'

pitest {
targetClasses = ['tat.mukhutdinov.currencyexchange.*']
excludedClasses = ['tat.mukhutdinov.currencyexchange.exchangerate.model.ExchangeRate$Creator']
targetClasses = ['tat.mukhutdinov.calculator.*']
excludedClasses = ['tat.mukhutdinov.calculator.MainActivity*']
mutationThreshold = 50
threads = 4
pitestVersion = '1.4.0'
pitestVersion = '1.4.6'
failWhenNoMutations = false
outputFormats = ['HTML']
timestampedReports = false
Expand Down

0 comments on commit 9fff0e3

Please sign in to comment.