diff --git a/tests/.classpath b/tests/.classpath index 1f0940313..33c1872af 100644 --- a/tests/.classpath +++ b/tests/.classpath @@ -4,5 +4,6 @@ + diff --git a/tests/.gitignore b/tests/.gitignore index 6a4fa7410..6f60917b0 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -2,3 +2,4 @@ bin/ instrumented/ coverage.em coverage/ +reports/ \ No newline at end of file diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml index 78e3d25bd..af07d58d8 100644 --- a/tests/AndroidManifest.xml +++ b/tests/AndroidManifest.xml @@ -19,7 +19,7 @@ the package of the parent app. To run the tests use the command: "adb shell am instrument -w com.xxx.xxx.tests/android.test.InstrumentationTestRunner" --> - diff --git a/tests/build.properties b/tests/build.properties index bfacee704..dd82656f6 100644 --- a/tests/build.properties +++ b/tests/build.properties @@ -24,3 +24,8 @@ out.dir=bin # because we pull in from multiple source folders source.dir=${out.dir}/source +# test runner: junit report test runner +test.runner=com.zutubi.android.junitreport.JUnitReportTestRunner + +# reports output directory +reports.dir=reports \ No newline at end of file diff --git a/tests/build.xml b/tests/build.xml index af5e730b2..b30dfbcff 100644 --- a/tests/build.xml +++ b/tests/build.xml @@ -64,7 +64,14 @@ --> - + + + + + + + + @@ -77,9 +84,59 @@ - - - + + + + + + + + + + + + + + + + + + + Downloading coverage file into project directory... + + + + + + + Extracting coverage report... + + + + + + + + + + + + + + Cleaning up temporary files... + + + + Saving the report file in ${basedir}/coverage/coverage.html + + + diff --git a/tests/libs/android-junit-report-1.0.3.jar b/tests/libs/android-junit-report-1.0.3.jar new file mode 100644 index 000000000..a4146976f Binary files /dev/null and b/tests/libs/android-junit-report-1.0.3.jar differ