acando86
09/21/2020, 5:03 PMplugins {
id("io.kotest") version "0.1.3"
id("com.android.application")
kotlin("android")
kotlin("android.extensions")
}
in my project (single module for now, it's just to experiment with it), but when running gradle kotest
i get
Could not determine the dependencies of task ':app:kotest'.
> Task with path 'classes' not found in project ':app'.
gradle test
(with java5 runner) works just fine.sam
09/21/2020, 5:05 PMacando86
09/21/2020, 5:20 PMmaster
branch), since i've seen it was already configured there. I've run gradle kotest
(or alternatively with the gradle wrapper, so no risk of running unexpected versions of gradle) from the top level folder of the project, and i get
✔ ~/kotest [master|✔]
18:13 $ ./gradlew kotest
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :buildSrc:compileKotlin
The `kotlin-dsl` plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see <https://docs.gradle.org/6.5.1/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin>
> Task :buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins
> Configure project :
Kotlin Multiplatform Projects are an Alpha feature.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':kotest-assertions:kotest'.
> Task with path 'classes' not found in project ':kotest-assertions'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 1m 22s
i suppose i'm just running it the wrong way (maybe i should run it for specific submodules?)sam
09/21/2020, 5:22 PMsam
09/21/2020, 5:23 PMtest
sourceset and android may use androidTest
or something ?sam
09/21/2020, 5:23 PMacando86
09/21/2020, 5:50 PMcom.adarshr.test-logger
(which is totally fine, btw, i just wanted to experiment with the output of kotest-gradle).. the fact that i'm playing with a android project it's mostly accidental, but i've mentioned it because i was worry that could have been the root cause of the issue.. Android uses androidTest
for instrumented tests running on the device, but i 'm not running those ATM, i'm running the unit ones, which run on jvm and are located in the src/test
folder, however it might be that kotlin-android or gradle-android plugins interfere with the pluginsam
09/21/2020, 5:58 PMsam
09/21/2020, 5:59 PMacando86
09/24/2020, 8:37 PMacando86
09/24/2020, 8:37 PMsam
09/24/2020, 8:38 PM