cordova-android/test
2013-01-29 15:20:21 -08:00
..
assets/www Updates to tests, including the use of Purity 2013-01-22 15:18:21 -08:00
res Updating the project so that the activities are clearly separated from Test and Helper code 2012-11-02 16:15:51 -07:00
src/org/apache/cordova/test Update to purity, adding better touch support 2013-01-25 14:39:44 -08: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 small tweaks to readme re: testing 2012-05-31 16:01:20 -07: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)