lundi 25 janvier 2021

How to run @RunWith(RobolectricTestRunner::class) and @RunWith(Parameterized::class) together in Junit4

I have to test android application written in Kotlin. I tried

@RunWith(RobolectricTestRunner::class)
    public class GeoWindowTest {
  
    @RunWith(Parameterized::class)
    class TestParameterizedGeoWindow {}

} 

but it doesnt work. Im looking if there is another solutions to use these two runners. Also I could have used Junit5 but then Roboelectric is not compatible yet with Junit5

Aucun commentaire:

Enregistrer un commentaire