Fix for tests. Now you can run the test suite in eclipse as well as from ant. Had to work around Android bug 23365

pull/14/head
Tim Su 13 years ago
parent c550925fd7
commit 8aa4bb8fa1

@ -6,7 +6,7 @@
<classpathentry excluding="com/todoroo/astrid/rmilk/EditOperationExposer.java|com/todoroo/astrid/rmilk/MilkEditActivity.java|com/todoroo/astrid/actfm/TaskFields.java|com/todoroo/astrid/actfm/ShowProjectExposer.java|com/todoroo/astrid/actfm/ProjectDetailExposer.java|com/todoroo/astrid/actfm/ProjectListActivity.java" kind="src" path="plugin-src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="src" path="rmilk-src"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="lib" path="libs/annotations.jar"/>
<classpathentry exported="true" kind="lib" path="libs/commons-codec-1.3.jar"/>

@ -166,9 +166,9 @@
<receiver android:name="com.todoroo.astrid.reminders.Notifications" />
<receiver android:name="com.todoroo.astrid.reminders.Notifications$ShowNotificationReceiver">
<intent-filter>
<action android:name="com.timsu.astrid.IN_APP_NOTIFY"/>
</intent-filter>
<intent-filter>
<action android:name="com.timsu.astrid.IN_APP_NOTIFY"/>
</intent-filter>
</receiver>
<!-- widgets -->

@ -45,22 +45,14 @@
unless="sdk.dir"
/>
<!-- build and install an instrumented build -->
<target name="install-instrumented">
<property name="tested.project.absolute.dir" location="${tested.project.dir}" />
<subant target="instrument">
<fileset file="${tested.project.absolute.dir}/build.xml" />
</subant>
<subant target="installi">
<fileset file="${tested.project.absolute.dir}/build.xml" />
</subant>
<copy todir="." file="${tested.project.absolute.dir}/coverage.em" />
<target name="-pre-build">
<!-- copy library project jars -->
<unzip src="../api/bin/classes.jar" dest="${tested.project.absolute.dir}/bin/classes" />
</target>
<!-- override coverage target with custom reporting and rules -->
<target name="coverage" depends="-test-project-check"
description="Runs the tests against the instrumented code and generates
code coverage report">
<target name="coverage"
description="Runs the tests against the instrumented code and generates emma code coverage report">
<property name="tested.project.absolute.dir" location="${tested.project.dir}" />
<property name="test.runner" value="com.zutubi.android.junitreport.JUnitReportTestRunner" />

@ -9,4 +9,3 @@
# Project target.
target=android-14
android.library.reference.1=../api

@ -23,6 +23,12 @@ public class NotificationTests extends DatabaseTestCase {
boolean value = false;
}
@Override
protected void setUp() throws Exception {
super.setUp();
fail("fix me! i crash a lot.");
}
@Override
protected void tearDown() throws Exception {
Notifications.setNotificationManager(null);

Loading…
Cancel
Save