Skip to content

Commit

Permalink
Bump kotest (#64)
Browse files Browse the repository at this point in the history
* Bump kotest

* Use new formatTestPath
  • Loading branch information
Kantis authored Mar 14, 2024
1 parent 11955fb commit 7d27d76
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
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

0 comments on commit 7d27d76

Please sign in to comment.