cordova-android/test
2012-09-17 14:25:12 -07:00
..
assets/www [CB-574] Added backbutton automated unit test for android. 2012-07-13 14:57:40 -07:00
res CB-1304: Update PhoneGap References to Apache Cordova 2012-09-03 14:31:35 -04:00
src/org/apache/cordova/test Added license headers to test java files 2012-09-17 14:25:12 -07: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-779: Verify that fullscreen and backgroundColor preferences are set properly - This check-in enables background color and adds test for it. 2012-05-16 16:47:02 -05: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 CB-578 - Adding a test of pause and resume to make sure that they're being called. Need to elaborate on this 2012-08-03 14:07:01 -07: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)