Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
275 views
in Technique[技术] by (71.8m points)

unit testing - 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

question from:https://stackoverflow.com/questions/65887945/how-to-run-runwithrobolectrictestrunnerclass-and-runwithparameterizedcl

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...