Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Bump kotest #64

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ tasks.named<Test>("test") {
}
}

kotlin{
jvmToolchain(8)
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.8.21"
kotest = "5.8.0"
kotest = "5.8.1"
allure = "2.24.0"

[plugins]
Expand Down
9 changes: 6 additions & 3 deletions src/main/kotlin/io/kotest/extensions/allure/AllureWriter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
Loading