Open matejdro opened 1 year ago
Possibly related to the https://github.com/kotest/kotest-intellij-plugin/issues/178?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still relevant and a major pain point - It prevents us from running individual tests of any code that includes utility Android classes, for example Location class.
Yeah kotest plugin doesn't use gradle, so anything setup there won't work.
Yeah that's why I marked #178 as related - this issue is meant as another use case for running gradle instead of IntelliJ. But we can merge them if desired.
unmock is a gradle plugin that allows using android utility classes (such as Uri, Location, TextUtils etc.) within unit tests.
Unfortunately it does not seem to work with the kotest IntelliJ plugin, kotest seems to completely ignore unmock's existence.
Steps to reproduce:
java/com/matejdro/kotestunmock/ExampleUnitTest.kt
with gradleBUG: Test will fail