From 54910103789c3c9879b6e48a1873e0356357ecf9 Mon Sep 17 00:00:00 2001 From: Amitai Schleier Date: Wed, 27 Nov 2024 11:06:17 -0500 Subject: [PATCH] Fix Detekt after the fact. Hmmm. --- .idea/kotlinc.xml | 2 +- .../com/schmonz/greencently/listener/JUnit5Listener.kt | 2 +- .../kotlin/com/schmonz/greencently/planner/JUnit5Planner.kt | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index c224ad5..bb44937 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/src/main/kotlin/com/schmonz/greencently/listener/JUnit5Listener.kt b/src/main/kotlin/com/schmonz/greencently/listener/JUnit5Listener.kt index 946cfc0..921d418 100644 --- a/src/main/kotlin/com/schmonz/greencently/listener/JUnit5Listener.kt +++ b/src/main/kotlin/com/schmonz/greencently/listener/JUnit5Listener.kt @@ -31,7 +31,7 @@ class JUnit5Listener : TestExecutionListener { if (System.getenv("GREENCENTLY_SUMMARY") !== null) { System.err.println( "greencently (total, green, red): " + - "(${greenTestCount + redTestCount}, ${greenTestCount}, ${redTestCount})" + "($greenTestCount + $redTestCount, $greenTestCount, $redTestCount)" ) } diff --git a/src/main/kotlin/com/schmonz/greencently/planner/JUnit5Planner.kt b/src/main/kotlin/com/schmonz/greencently/planner/JUnit5Planner.kt index 028187a..0469a89 100644 --- a/src/main/kotlin/com/schmonz/greencently/planner/JUnit5Planner.kt +++ b/src/main/kotlin/com/schmonz/greencently/planner/JUnit5Planner.kt @@ -36,7 +36,6 @@ class JUnit5Planner(testClasspath: Path?, private val testClassesMatching: Strin .selectors(DiscoverySelectors.selectClasspathRoots(setOf(testClasspath))) .filters(ClassNameFilter.includeClassNamePatterns(testClassesMatching)) .build() - ). - countTestIdentifiers(TestIdentifier::isTest) - + ) + .countTestIdentifiers(TestIdentifier::isTest) }