-
Notifications
You must be signed in to change notification settings - Fork 12
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
org.kodein.mock:mockmp-test-helper-jvm conflicts with org.jetbrains.kotlin:kotlin-test-junit5 during jvmTest #31
Comments
Version |
I am still getting this issue with I defined
|
You need to use:
I'll reopen this issue because I forgot to document this. |
The 1.12.0 Gradle plugin applies the correct dependency according to your test framework. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
org.kodein.mock:mockmp-test-helper-jvm contains org.jetbrains.kotlin:kotlin-test-junit as a dependency.
org.jetbrains.kotlin:kotlin-test-junit5 and org.jetbrains.kotlin:kotlin-test-junit conflict with each other.
When project configured to use junit5 and we add mocKMP helper to it then we'll get compile time exception on running jvmTest:
Reproducer:
build.gradle.kts:
src/commonTest/kotlin/com/example/ExampleTest.kt:
Switching to Junit4 (
useJUnitPlatform()' -> 'useJUnit()
) or removing mocKMP helper (usesHelper = true
->usesHelper = false
) make test runnable again.The text was updated successfully, but these errors were encountered: