You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class SomeTest : StringSpec({
"Base Test" {
val value = 1
value.matchWithSnapshot()
val kotlinSnapshot =
KotlinSnapshot(snapshotsFolder = "src/test/kotlin/com/test", testClassAsDirectory = true)
kotlinSnapshot.matchWithSnapshot(value)
}
})
Actual behaviour
Kotlin Snapshot library couldn't find the name of the test. Review if the test case file or the spec file contains the word test or spec or specify a snapshot name manually, this is a requirement needed to use Kotlin Snapshot
com.karumi.kotlinsnapshot.exceptions.TestNameNotFoundException: Kotlin Snapshot library couldn't find the name of the test. Review if the test case file or the spec file contains the word test or spec or specify a snapshot name manually, this is a requirement needed to use Kotlin Snapshot
at com.karumi.kotlinsnapshot.core.Camera.extractTestCaseName(Camera.kt:120)
Steps to reproduce
Build a project with Kotest
val kotestVersion = "4.4.3"
testImplementation("io.kotest:kotest-runner-junit5-jvm:$kotestVersion")
Create a test as above
Run the test
Version of the library
2.3.0
Gradle version
7.X
The text was updated successfully, but these errors were encountered:
Expected behaviour
Either of the cases below produces a snapshot:
Actual behaviour
Steps to reproduce
Version of the library
2.3.0
Gradle version
7.X
The text was updated successfully, but these errors were encountered: