Cody Engel
03/14/2020, 6:25 PMExtensions
step, when I stop the execution it ends saying Test events were not received
. This is the sample test I’m trying to run…
class SimpleTest : FunSpec({
test("just a simple test") {
1 + 1 shouldBe 2
}
})
Testing started at 1:21 PM ...
Starting Gradle Daemon...
Gradle Daemon started in 674 ms
> Task :cleanTest
> Task :compileKotlin UP-TO-DATE
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestKotlin
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test
~~~ Kotest Configuration ~~~
-> Parallelism: 1 thread(s)
-> Default test timeout: 600000ms
-> Default test order: TestCaseOrder
-> Default isolation mode: IsolationMode
-> Global soft assertations: False
-> Write spec failure file: False
-> Fail on ignored tests: False
-> Spec execution order: LexicographicSpecExecutionOrder
-> Extensions
- io.kotest.core.extensions.SystemPropertyTagExtension
- io.kotest.core.extensions.RuntimeTagExtension
sam
03/14/2020, 7:27 PMLeoColman
03/14/2020, 8:02 PMCody Engel
03/15/2020, 2:41 PMuseJUnitPlatform
set in my gradle script. I’m using 4.0.0-BETA2
and my gradle version is 5.2.1
.
This is the full build config, it’s for a project I put down for a few months and am coming back to so I’m going to update a few things (such as the kotlin version).
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.61"
}
group = "dev.engel.fakek"
version = "0.1-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("com.github.javafaker:javafaker:1.0.2")
testImplementation("io.kotest:kotest-runner-junit5-jvm:4.0.0-BETA2")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Test> {
useJUnitPlatform()
}
-jvm
for the kotest dependency while the reference suggests dropping -jvm
. When I remove the -jvm
dependency the tests don’t run as they are unable to resolve the following dependencies:
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe