cordova-android/test
Andrew Grieve 77e9092108 [CB-3384] Reworked UriResolver into CordovaResourceApi.
Changes were made after trying to use the API for Camera, FileTransfer, Media.
The main difference is separating the concept of URI remapping from the read/write helpers.
2013-07-15 15:18:39 -04:00
..
assets/www Updating cordova.js for unit tests 2013-07-11 16:26:12 -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] Reworked UriResolver into CordovaResourceApi. 2013-07-15 15:18:39 -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 [CB-3384] Reworked UriResolver into CordovaResourceApi. 2013-07-15 15:18:39 -04: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)