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

KMM tests can't be run from common source set if Android is the only JVM target #261

Open
OSemenovBoyarka opened this issue Jun 21, 2023 · 2 comments
Labels

Comments

@OSemenovBoyarka
Copy link

Kotest version: 5.6.2
Kotest IntelliJ plugin version: 1.3.69-IC-2022.2
Android Studio version: 2022.2.1 Patch 2

I have a KMM project with only Android and iOS targets and I'd like to use Kotest for unit tests.
The issue is whenever I create a test in a commonTest sourceset - I can't run it from the editor (run and debug buttons are grey):
Screenshot 2023-06-21 at 17 16 28

If I put that same file to the androidUnitTest source set - all works good.
I can run test from commandline with ./gradlew check.
And I'm also able to run it by clicking Run all tests in ... package from project navigator.

Additionally is I use create test dialog on a class which is in commonMain sourceset - it creates test file in the androidUnitTest instead of commonTest.

@stale
Copy link

stale bot commented Sep 17, 2023

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.

@stale stale bot added the wontfix This will not be worked on label Sep 17, 2023
@OSemenovBoyarka
Copy link
Author

This is still an issue

@stale stale bot removed the wontfix This will not be worked on label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants