cordova-android/test
2013-09-09 15:43:04 -04:00
..
assets/www Updating cordova.js for unit tests 2013-07-11 16:26:12 -07:00
res Remove plugin references in test project's config.xml 2013-08-02 13:19:14 -04:00
src/org/apache/cordova/test [CB-4763] Delete FileHelper.java, Move getMimeType() into CordovaResourceApi. 2013-09-09 15:43:04 -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-4230: We test Cordova, not jQuery Mobile 2013-07-15 14:08:54 -07: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)