marcelo
11/19/2018, 4:12 PMspek2
and when I ran the tests using gradle but it shows as if I have zero tests when I run it:
> Task :kotlin:video_renderer:junitPlatformTest
Test run finished after 4 ms
[ 0 containers found ]
[ 0 containers skipped ]
[ 0 containers started ]
[ 0 containers aborted ]
[ 0 containers successful ]
[ 0 containers failed ]
[ 0 tests found ]
[ 0 tests skipped ]
[ 0 tests started ]
[ 0 tests aborted ]
[ 0 tests successful ]
[ 0 tests failed ]
my dependencies file are here:
ext {
versions = [
...
spek : '2.0.0-rc.1',
]
libraries = [
...
spekApi : [
dependencies.create("org.spekframework.spek2:spek-dsl-jvm:2.0.0-rc.1") {
exclude group: 'org.jetbrains.kotlin'
}
],
spekJUnitPlatformEngine : [
dependencies.create("org.spekframework.spek2:spek-runner-junit5:2.0.0-rc.1") {
exclude group: 'org.junit.platform'
exclude group: 'org.jetbrains.kotlin'
},
],
this is the configuration that I have for one of my app:
apply from: "$rootDir/build-scripts/kotlin-library.gradle"
kotlin {
experimental {
coroutines 'enable'
}
}
dependencies {
compile project(':kotlin:common:file_utils')
compile project(":kotlin:render_master:publicapi")
compile project(':kotlin:couch_api')
compile project(':kotlin:video_renderer:public_api')
compile libraries.kotlinStdlib
compile libraries.slf4j
compile libraries.kotlinCoroutinesCore
testCompile project(':kotlin:video_renderer')
testCompile libraries.spekApi
testCompile libraries.truth
testRuntime libraries.logback
}`
artem_zin
11/19/2018, 9:06 PMtest {
useJUnitPlatform {
includeEngines 'spek', 'spek2', 'some-other-test-engine'
}
}
artem_zin
11/19/2018, 9:06 PMspek2
^marcelo
11/20/2018, 12:41 AMartem_zin
11/20/2018, 12:51 AM