Test run failed: Test run failed to complete. Expected 1 tests, received 0

后端 未结 8 1937
长情又很酷
长情又很酷 2021-01-11 10:28

I tried starting a JUnit test (robotium) for my app:

public class MainTest extends ActivityInstrumentationTestCase2 {
    private Solo so         


        
8条回答
  •  無奈伤痛
    2021-01-11 11:24

    I had this error and I fixed it removing the parameter from the constructor method, it was created by Eclipse wizard as:

    public OptionsActivityTest( String name ) {
    

    I just had to remove the "String name" to make my tests work again.

提交回复
热议问题