Peter
03/05/2021, 4:19 PM:services:shared:test
/services/shared/build/classes/kotlin/test/
… they are located in /services/shared/src/test/kotlin
(edited)/services/
itself has no tests./gradlew -i --rerun-tasks :services:shared:clean :services:shared:test
reults in SUCCESS: Executed 0 tests in 1.7s
subprojects {
tasks.withType<Test> {
useJUnitPlatform()
}
}
sam
03/05/2021, 4:37 PMPeter
03/05/2021, 4:38 PMsam
03/05/2021, 4:38 PMPeter
03/05/2021, 4:38 PMGradle Test Executor 25 STANDARD_OUT
~~~ Kotest Configuration ~~~
-> Parallelization factor: 1
-> Concurrent specs: null
-> Global concurrent tests: 1
-> Dispatcher affinity: true
-> Default test timeout: 600000ms
-> Default test order: Sequential
-> Default isolation mode: SingleInstance
-> Global soft assertions: false
-> Write spec failure file: false
-> Fail on ignored tests: false
-> Spec execution order: SpecExecutionOrder
-> Include test scope affixes: null
-> Remove test name whitespace: false
-> Append tags to test names: false
-> Extensions
- io.kotest.engine.extensions.SystemPropertyTagExtension
- io.kotest.core.extensions.RuntimeTagExtension
- io.kotest.engine.extensions.RuntimeTagExpressionExtension
SUCCESS: Executed 0 tests in 1.5s
sam
03/05/2021, 4:39 PMPeter
03/05/2021, 4:40 PMsam
03/05/2021, 4:40 PMPeter
03/05/2021, 4:41 PM:service
but no dicewasyl
03/05/2021, 4:53 PM./gradlew -i --rerun-tasks :services:shared:test
without clean
task, you don’t really need it with --rerun-tasks
anywaytasks.withType<Test>().configureEach { }
to benefit from lazy task configuration)Peter
03/05/2021, 4:54 PMwasyl
03/05/2021, 4:55 PM--rerun-tasks
alone makes sure there’s no caching or up-to-date avoidance. Are you sure you’ve added proper dependencies as well?
I’d suggest that you configure Kotest in the services/shared/build.gradle
directly until you can run the tests, and only then start extracting the build logicPeter
03/05/2021, 4:59 PMdependencies {
api(project(":p8e:proto"))
implementation.let {
it(Libraries.ProvenanceCoreProto)
}
testImplementation.let {
it(Libraries.KotlinXCoRoutinesTest)
it(Libraries.Kotest)
it(Libraries.KotestAssertions)
it(Libraries.KotlinLogging)
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
wasyl
03/05/2021, 5:00 PMjunit5
dependency appliedPeter
03/05/2021, 5:01 PMconst val Kotest = "io.kotest:kotest-runner-junit5-jvm:${Versions.Kotest}"
wasyl
03/05/2021, 5:02 PMconfigure Kotest directlyI meant to have entire project configuration in the subproject’s
build.gradle
directly. In one of the previous snippets you mentioned having subprojects { }
in root build.gradle file, that’s why I suggested to not use root build.gradle but just make sure you have all the proper configuration in the subproject build.gradlePeter
03/05/2021, 5:02 PMwasyl
03/05/2021, 5:03 PM./gradlew :workingProject:dependencies
vs ./gradlew :notWorking:dependencies
) for examplekotlin
source sets aren’t set properly? (I used to put everything under src/java/
to be sure)Peter
03/05/2021, 5:06 PM