| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The Android JUnit report test runner is a custom instrumentation test runner for Android that creates XML test reports. These reports are in a similar format to those created by the Ant JUnit task's XML formatter, allowing them to be integrated with tools that support that format (e.g. continuous integration servers).
Android JUnit report has home on the web at:
http://zutubi.com/source/projects/android-junit-report/
This project is no longer required with the new, Gradle-based build system that ships with modern versions of the ADT.
This code is licensed under the Apache License, Version 2.0. See the LICENSE file for details.
This is a quick overview of how to integrate the runner with Ant builds. Note all modifications are made to your test project, i.e. the project which implements the JUnit tests:
The runner supports the following arguments:
To specify arguments, use the -e flag to adb shell am instrument, for example:
adb shell am instrument -w -e reportFile my-report.xml \
com.example.test/com.zutubi.android.junitreport.JUnitReportTestRunner
See the example and/or full documentation for how to set arguments in you Ant build.
Check out the following resources for more details:
If you would like to modify the runner, or build it yourself for any other reason, you will need:
To run a build:
Create a file local.properties in the directory containing this README. In this file, define the location of an android.jar to build against, for example:
android.jar=/opt/android/platforms/android-14/android.jar
where /opt/android is the root of an Android SDK.
Run ant in this same directory:
$ ant
The jar will be created at build/android-junit-report-dev.jar.
If you have any thoughts, questions etc about the runner, you can contact me at:
All feedback is welcome.
| Back | FazBrowse Home | New Git URL |