cordova-android/test
2013-11-07 09:02:17 -05:00
..
assets/www CB-5302: Massive movement to get tests working again 2013-11-06 15:06:20 -08:00
cordova CB-5302: Massive movement to get tests working again 2013-11-06 15:06:20 -08:00
res CB-5307 Remove references to Callback and Incubator 2013-11-07 09:02:17 -05:00
src/org/apache/cordova CB-5302: Massive movement to get tests working again 2013-11-06 15:06:20 -08:00
.classpath CB-5302: Massive movement to get tests working again 2013-11-06 15:06:20 -08:00
.project CB-1304: Update PhoneGap References to Apache Cordova 2012-09-03 14:31:35 -04:00
AndroidManifest.xml CB-5302: Massive movement to get tests working again 2013-11-06 15:06:20 -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 CB-5301 add missing license headers 2013-11-06 16:27:46 -05: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)