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

How to use these extensions with Kotlin Multiplatform? #32

Open
Burtan opened this issue Jan 6, 2025 · 2 comments
Open

How to use these extensions with Kotlin Multiplatform? #32

Burtan opened this issue Jan 6, 2025 · 2 comments

Comments

@Burtan
Copy link

Burtan commented Jan 6, 2025

Hey,

did you try to use these kotest extensions with Kotlin Multiplatform? Ideally the tests are written in the commonTest module. But there are some problems. For example you cannot use @roboElectric in commonTest because it is only available in the Android module.

@LeoColman
Copy link
Owner

I believe it's possible, yes, but I've never done it.

As you've asked around in Robolectric too, robolectric/robolectric#7942 , what is new at the moment? I see that your issue was closed as completed

@Burtan
Copy link
Author

Burtan commented Jan 6, 2025

Yes, using subclassing I managed to run Roboelectric tests in commonTest using kotlin-test. However I did not succeed in kotest. I will try using these extensions and give an update on this topic :-).

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

No branches or pull requests

2 participants