Hi, I have created some simple unit tests for my program and I'm
getting an error while running the unit tests as Android JUnit Test.
The following is the error.
Test run failed: Unable to instantiate instrumentation ComponentInfo
{droidcrafters.cxa2009.healthinfolibrary.tests/
android.test.InstrumentationTestRunner}:
java.lang.ClassNotFoundException:
android.test.InstrumentationTestRunner in loader
dalvik.system.pathclassloa...@43734bc8
I've tried running the unit test from avd command line also and got
the same result.
Can anybody point me out what I did wrong?
My Manifest file for Tests Project.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="droidcrafters.cxa2009.healthinfolibrary.tests">
<application>
<uses-library name="android.test.runner"/>
</application>
<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="droidcrafters.cxa2009.healthinfolibrary"
android:label="Simple Tests for Health Info
Library"/>
<uses-sdk android:minSdkVersion="3" />
</manifest>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---