This is an experimental project that aims to bridge the gap between JUnit 5 and Robolectric, providing a way to run your Android unit tests using the modern JUnit 5 framework while leveraging Robolectric's in-memory environment.
@Config
's sdk parameter annotation can only be set on outermost test class.@GraphicsMode
annotations can only be set on outermost test class.settings.gradle
file:build.gradle
:@ExtendWith
. This extension will manage the Robolectric
environment for your tests:@Test
, @BeforeEach
, @AfterEach
, etc.) within your
test methods. You could also use org.jetbrains.kotlin:kotlin-test-junit5
package if you want
to.