diff --git a/README.md b/README.md index 9e44a1c..5f4f215 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ Please create issues on the main kotest [board](https://github.com/kotest/kotest ## Changelog +### 1.4.0 + +* Update to Kotest 5.8.1 + ### 1.3.0 * Update to Kotest 5.6.0 diff --git a/build.gradle.kts b/build.gradle.kts index fe68d02..b89f5f1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,6 +29,10 @@ tasks.named("test") { } } +kotlin{ + jvmToolchain(8) +} + tasks.withType { kotlinOptions.jvmTarget = "1.8" } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4bb9e30..f9aacd4 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] kotlin = "1.8.21" -kotest = "5.8.0" +kotest = "5.8.1" allure = "2.24.0" [plugins] diff --git a/src/main/kotlin/io/kotest/extensions/allure/AllureWriter.kt b/src/main/kotlin/io/kotest/extensions/allure/AllureWriter.kt index c25f046..fe248bd 100644 --- a/src/main/kotlin/io/kotest/extensions/allure/AllureWriter.kt +++ b/src/main/kotlin/io/kotest/extensions/allure/AllureWriter.kt @@ -6,6 +6,7 @@ import io.kotest.core.descriptors.TestPath import io.kotest.core.test.TestCase import io.kotest.core.test.TestResult import io.kotest.engine.test.names.DefaultDisplayNameFormatter +import io.kotest.engine.test.names.FallbackDisplayNameFormatter import io.kotest.engine.test.names.formatTestPath import io.qameta.allure.Allure import io.qameta.allure.AllureLifecycle @@ -25,9 +26,11 @@ class AllureWriter { const val FrameworkLabel = "kotest" } - private val formatter = DefaultDisplayNameFormatter(ProjectConfiguration().apply { - includeTestScopeAffixes = true - }) + private val formatter = FallbackDisplayNameFormatter( + DefaultDisplayNameFormatter(ProjectConfiguration().apply { + includeTestScopeAffixes = true + }) + ) /** * Loads the [AllureLifecycle] object which is used to report test lifecycle events.