incubator-callback-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 FilMaj
Date Mon, 27 Feb 2012 23:17:27 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 FilMaj:
http://wiki.apache.org/cordova/RunningTests?action=diff&rev1=4&rev2=5

Comment:
Updating mobile-spec specific testing instructions

- == Testing the Native Plugin API ==
- 
- TODO
- 
  == Testing the Device API ==
  
- Currently the device api tests live in a qUnit based library called mobile-spec which, being
just a simple webpage, need to be run in an Apache Cordova shell. Simply create an Apache
Cordova project and include the test suite in the www folder. The tests will run when the
application is launched. 
+ Currently the device api tests live in a project called [[http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-mobile-spec.git;a=summary|mobile-spec]]
which, being a set of webpages, needs to be run in an Apache Cordova shell. Simply create
an Apache Cordova project and include the test suite in the www folder. The tests will run
when the application is launched.
+ 
+ There are two parts to the Mobile Spec:
+ 
+ 1. a QUnit suite of tests that assert things about the Cordova JavaScript API. When you
load mobile-spec up on your device, hit the "Automatic Tests" button and that test suite should
start executing.
+ 2. a series of "manual" tests. These are all linked from the project's root page. You should
run through each one to make sure baseline functionality works as expected.
  
  == Testing Cordova on Android (Post Cordova View) ==
  
- Cordova on Android uses JUnit and WebDriver 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 dirtectory, then run the following command in the framework directory with
a device attached or emulator running: 
+ Cordova on Android uses JUnit and WebDriver 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: 
  
      adb shell am instrument -w com.phonegap/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.
  
+ == Testing the Native Plugin API ==
+ 
+ TODO
+ 

Mime
View raw message