cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cordova Wiki] Update of "RunningTests" by JoeBowser
Date Fri, 16 Nov 2012 18:25:36 GMT
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 ==
  

Mime
View raw message