I am unable to get any test cases that extend ServiceTestCase to run. There are no errors they are just not executed.
Other test cases that extend AndroidTestCase do run.
The projects are set up as follows:
I have a Android Library that contains a service. It's manifest file is as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.something.android"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="9"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application>
<service android:name=".ExampleService"
android:exported="false"
android:process=":example_service">
</service>
</application>
</manifest>
The Android Library Project contains a test project in the folder test (created using the Android tools)
This contains a AndroidManfiest.xml as as follows
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.something.android.tests"
android:versionCode="1"
android:versionName="1.0">
<application>
<uses-library android:name="android.test.runner" />
</application>
<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.something.android.tests"
android:label="Tests for com.something.android"/>
</manifest>
I also have a build.properties in the test project which contains:
tested.project.dir=.. android.library.reference.1=..
I execute the tests by running ant clean run-tests.
What do I need to do to get the ServiceTestCase test to run?
Thanks in advance.