-
Notifications
You must be signed in to change notification settings - Fork 25
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
Unable to run individual tests KMP tests #245
Comments
Can you provide a repro for this? It looks like a gradle error to me. The Kotest plugin never explicitly calls the |
@Kantis, I see this happening when trying to run/debug individual tests from IDE. Seems to work fine with the whole test suite though: |
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. |
Task 'compileJava' not found in project
@Kantis, I update the title and description of the ticket. The real issue that I'm seeing is that we are not able to run individual tests from IDE (clicking green arrow next to a |
I have the same problem. This should be reopened @kirillzh |
@Kantis, do you have any pointers for how this issue could be resolved? Happy to attempt fixing this in the plugin itself but not sure where to look. Would appreciate your help here, thanks! |
The same issue here, just creating blank KMP project with Android and iOS targets (no JVM). and adding Kotest following official docs reproduces this. |
I've been debugging and prodding IntelliJ IDEA and the Android plugin's source code and found that there's actually a registry setting for IntelliJ IDEA. When you set the We still need to see if this can be enabled long-term and I'll be reaching out to JB to see if there's a reason not to use it and what's the plan for it. But being able to run Kotest from the gutter icons again is sweet! |
Thank you for figuring this out!
…On Thu, 7 Dec 2023 at 20:37, Tadeas Kriz ***@***.***> wrote:
I've been debugging and prodding IntelliJ IDEA and the Android plugin's
source code and found that there's actually a registry setting for IntelliJ
IDEA. When you set the Registry... setting called
android.task.runner.restricted to true (checking the box), it will make
sure that Android task runner is only used for modules with the Android
facet. Thanks to this it will correctly use the Gradle task runner and
compile the underlying module correctly.
We still need to see if this can be enabled long-term and I'll be reaching
out to JB to see if there's a reason not to use it and what's the plan for
it. But being able to run Kotest from the gutter icons again is sweet!
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGXMEVM2LBBVDTXY7O3YIJ4NNAVCNFSM6AAAAAAVARO3KCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWGQ3DIMBVGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Any updates on this? I run into the same issue when running tests from IDE. Works fine when running via gradle. For us at the moment it would be quite painful to add jvm target to the modules as we do have a lot of modules. |
@TadeasKriz, correct me if I'm wrong but this is blocked by https://youtrack.jetbrains.com/issue/KT-65131/Incorrect-compilation-name-for-custom-test-runs-KotlinJvmTest-tasks-in-KMP-modules, right? |
When trying to run an individual KMP test in IJ/AS, getting this error:
The text was updated successfully, but these errors were encountered: