Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use this plugin in tandem with Kotlin Multiplatform Tests #116

Open
eriwen opened this issue Sep 28, 2021 · 1 comment
Open

Cannot use this plugin in tandem with Kotlin Multiplatform Tests #116

eriwen opened this issue Sep 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@eriwen
Copy link
Contributor

eriwen commented Sep 28, 2021

We got a report from one of our users that was having trouble running the test retry plugin with a kotlin project. After some digging, we found that org.jetbrains.kotlin.multiplatform.gradle.plugin creates their own test executer for KotlinJvmTest per https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plug[…]/org/jetbrains/kotlin/gradle/targets/jvm/tasks/KotlinJvmTest.kt
When this happens, this part of the test retry plugin is reached: https://github.com/gradle/test-retry-gradle-plugin/blob/v1.3.1/plugin/src/main/java/org/gradle/testretry/internal/config/TestTaskConfigurer.java#L142 so tests fail with the following:

> Configure project :
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.


> Task :jvmTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jvmTest'.
> Unexpected test executer: org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest$Executor@1073de17

Bug reproducer project

@eriwen eriwen added the bug Something isn't working label Sep 28, 2021
@abelkov
Copy link

abelkov commented Oct 8, 2021

Mirror issue on Kotlin side: https://youtrack.jetbrains.com/issue/KT-49155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants