I am trying to set a global project configuration for Kotest. I have followed the instructions at https://kotest.io/project_config/
However, I have a number of unresolved items in the below:
package io.kotest.provided
import io.kotest.core.config.AbstractProjectConfig
object ProjectConfig : AbstractProjectConfig() {
override val assertionMode = AssertionMode.Error
}
Where, in the import statement, core
is unresolved.
AbstractProjectConfig
is unresolved.
AssertionMode
is unresolved.
So then of course, assertionMode
"overrides nothing" as well
In my app-level build.gradle, I have
dependencies {
[...]
testImplementation 'io.kotest:kotest-runner-junit5:4.3.1' // for kotest framework
testImplementation 'io.kotest:kotest-assertions-core:4.3.1' // for kotest core jvm assertions
testImplementation 'io.kotest:kotest-property:4.3.1' // for kotest property test
}
android.testOptions {
unitTests.all {
useJUnitPlatform()
}
}
Is it possible to use AbstractProjectConfig
within an Android project? If so, where have I gone wrong please?