You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by Apache Wiki <wi...@apache.org> on 2012/11/16 19:25:36 UTC

[Cordova Wiki] Update of "RunningTests" by JoeBowser

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "RunningTests" page has been changed by JoeBowser:
http://wiki.apache.org/cordova/RunningTests?action=diff&rev1=12&rev2=13

Comment:
Updating Command Line

  
  == Testing Cordova on Android (Post Cordova View) ==
  
- Cordova on Android uses JUnit to run numerous tests on the Android Framework.  It is recommended that if any changes are made to Cordova that these tests would be run. These tests can be run on Eclipse or on the Command Line. Also, please make sure that when running these tests that they are at least run on Gingerbread, Honeycomb and Ice Cream Sandwich.  The tests should pass on all three platforms.  To run these tests from the command line, copy the extra/google/webdriver/android_webdriver_library.jar from the Android SDK into the framework/libs directory, then run the following command in the framework directory with a device attached or emulator running: 
+ Cordova on Android uses JUnit to run numerous tests on the Android Framework.  It is recommended that if any changes are made to Cordova that these tests would be run. These tests can be run on Eclipse or on the Command Line. To run these tests from the command line run the following command in the framework directory with a device attached or emulator running: 
  
+     ant debug install
-     adb shell am instrument -w com.phonegap/android.test.InstrumentationTestRunner
+     adb shell am instrument -w org.apache.cordova.test/android.test.InstrumentationTestRunner
  
- This will go through all the current tests that are written for the Android version of Cordova.  Please note that these tests assume that you are running qUnit in the assets/www directory of the Android project itself.
+ This will go through all the current tests that are written for the Android version of Cordova.  Please note that these tests assume that you are running Jasmine and a modified Mobile-Spec in the assets/www directory of the Android project itself.
+ 
+ To run these in Eclipse, first run the test project on the 
  
  == Testing the Native Plugin API ==