So, I try our Android studio and test a project that worked in eclipse. I have everything that compiles and the application will run fine, but I can’t modify my unit tests and work. In the end, I compiled them by adding the application folder as a dependency, but I don’t think my launch configuration is correct, because whenever I run my tests, I get this error
Installing <packagename> DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/<packagename>" pkg: /data/local/tmp/<packagename> Success Running tests Test running started Test running failed: Unable to find instrumentation info for: ComponentInfo{<packagename>/android.test.InstrumentationTestRunner} Empty test suite.
Edit: For all new members, the state of Android Studio has changed a lot since I originally posted this question, but many helpful people continued to post their specific solution for this error. I would advise sorting by active and checking the latest answers first.
android android-studio junit
AJD May 16 '13 at 15:24 2013-05-16 15:24
source share