cordova-android/test
Andrew Grieve 892ffc8ce4 [CB-3384] Rewrite of DataResource into UriResolver + UriResolvers
Includes unit tests woot!

Note that this remove CordovaPlugin.shouldInterceptRequest(). Should be
fine since this method was introduced only a couple of releases ago, was
never documented, and afaict was only used by the Chrome Cordova plugins.
2013-06-27 21:55:28 -04:00
..
assets/www Updating the JS used in the tests 2013-06-14 15:31:03 -07:00
res Fixing the config.xml on tests to use the ActivityPlugin 2013-06-14 15:31:23 -07:00
src/org/apache/cordova/test [CB-3384] Rewrite of DataResource into UriResolver + UriResolvers 2013-06-27 21:55:28 -04:00
.classpath Fixed the bug caused when running on Eclipse 2012-04-23 14:43:54 -07:00
.project CB-1304: Update PhoneGap References to Apache Cordova 2012-09-03 14:31:35 -04:00
AndroidManifest.xml Setting template AndroidManifest values for version to 1.0 and code to 1. 2013-01-23 12:13:07 -08:00
ant.properties Tests to verify Android native features. 2012-03-30 11:37:29 -05:00
build.xml Working towards Apache compliance 2012-05-07 10:56:37 -07:00
proguard.cfg Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
project.properties Upgrading Test Project properties to 4.2 2013-01-18 11:44:09 -08:00
README.md [CB-3468] Add missing license headers found by RAT 2013-05-28 16:43:38 -04:00

Android Native Tests

These tests are designed to verify Android native features and other Android specific features.

Initial Setup

Before running the tests, they need to be set up.

  1. Copy cordova-x.y.z.jar into libs directory

To run from command line:

  1. Build by entering ant debug install
  2. Run tests by clicking on "CordovaTest" icon on device

To run from Eclipse:

  1. Import Android project into Eclipse
  2. Ensure Project properties "Java Build Path" includes the lib/cordova-x.y.z.jar
  3. Create run configuration if not already created
  4. Run tests

Automatic Runs

Once you have installed the test, you can launch and run the tests automatically with the below command:

adb shell am instrument -w org.apache.cordova.test/android.test.InstrumentationTestRunner

(Optionally, you can also run in Eclipse)