From 28b9ac4e5433add67d0693718c7dc60a110e3838 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Sat, 13 Feb 2021 01:27:40 +0100 Subject: [PATCH] Install pitest --- .idea/runConfigurations/Pitest.xml | 23 +++++++++++++++++++++++ build.gradle.kts | 14 ++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .idea/runConfigurations/Pitest.xml diff --git a/.idea/runConfigurations/Pitest.xml b/.idea/runConfigurations/Pitest.xml new file mode 100644 index 0000000..ae05465 --- /dev/null +++ b/.idea/runConfigurations/Pitest.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 15be418..1810a4a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -36,6 +36,7 @@ plugins { id("org.sonarqube") version "3.1.1" id("net.nemerosa.versioning") version "2.14.0" id("io.gitlab.arturbosch.detekt") version "1.16.0-RC1" + id("info.solidsoft.pitest") version "1.5.2" } application { @@ -138,6 +139,15 @@ tasks { } } +pitest { + targetClasses.add("fr.dcproject.*") // by default "${project.group}.*" + threads.set(8) + outputFormats.set(listOf("HTML")) + jvmArgs.set(listOf("-Xmx1024m")) + junit5PluginVersion.set("0.12") + excludedClasses.set(listOf("fr.dcproject.component.notification.*")) +} + dependencyCheck { formats = listOf(ReportGenerator.Format.HTML, ReportGenerator.Format.XML) } @@ -186,4 +196,8 @@ dependencies { testImplementation("org.amshove.kluent:kluent:1.61") testImplementation("io.cucumber:cucumber-java8:$cucumber_version") testImplementation("io.cucumber:cucumber-junit:$cucumber_version") + pitest("org.pitest:pitest-junit5-plugin:0.5") + testImplementation("io.mockk:mockk-agent-api:1.10.5") + testImplementation("io.mockk:mockk-agent-jvm:1.10.5") + testImplementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version") }