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

Add testing module as an internal project module #36

Merged
merged 3 commits into from
Jun 23, 2024
Merged

Conversation

ogaclejapan
Copy link
Contributor

Use Robolectric for Android unit testing.
We added it to the project as a testing module so that we can write tests directly in the commonTest of each Kotlin Multiplatform module.

If you write a test by inheriting the UnitTest class as follows, RobolectricTestRunner will be used to run tests for Android.

import soil.testing.UnitTest

class FooTest extends UnitTest() {
  @Test
  fun test() { .. }
}

@ogaclejapan ogaclejapan merged commit 7dd7e0c into main Jun 23, 2024
1 check passed
@ogaclejapan ogaclejapan deleted the testing branch June 23, 2024 00:27
@github-actions github-actions bot mentioned this pull request Jun 30, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant