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

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

    Check that you're not proguarding out a method that your test's contructor depends upon but that nothing in the application uses - logcat will complain about a missing class or method from your application package.

    Try uninstalling the target package, to check it's not left over from an alternate build (if, for instance you use Maven alongside Eclipse).

提交回复
热议问题