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

后端 未结 8 1839
长情又很酷
长情又很酷 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:26

    All tests name should start with prefix "test".

    0 讨论(0)
  • 2021-01-11 11:30

    I had this problem when I didn't have a no-args constructor.

    public class MainActivityTest extends
        ActivityInstrumentationTestCase2<MainActivity_> {
    
    public MainActivityTest() {
        super(MainActivity_.class);
    }
    ...
    
    0 讨论(0)
提交回复
热议问题