Android Eclipse Plugin: Instrumentation Test Runner not specified

前端 未结 7 1318
抹茶落季
抹茶落季 2020-12-04 21:46

I\'m getting this error when trying to run unit tests from Eclipse with an Android Project. The list of Instrumentation Test Runners is empty in the Android preferences.

7条回答
  •  悲&欢浪女
    2020-12-04 21:53

    Besides ensuring that the below items are declared in the manifest of your test app, check in the Run Configuration that the "Instrumentation runner" field is set to

    "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner". 
    

    This what I ran into when figuring out why I test wouldn't run.

    Manifest:

    
    
     and...
    
    
    

提交回复
热议问题