Available in an app store near you!
The PhoneGap Developer app is a testing utility for web developers and designers using the PhoneGap framework. After installing the PhoneGap Developer app you can connect to your PhoneGap desktop app to instantly view and test your project on the device.
For more information, see app.phonegap.com.
$ npm install
$ npm install -g [email protected]
$ phonegap run ios
$ phonegap run android
$ phonegap run wp8
For developers wishing to use the platform SDKs (Xcode, Eclipse, Visual Studio), please build once with the CLI to correctly populate the platform assets:
$ phonegap build <platform>
There are two types of test targets: the local app and served app.
The local application is the PhoneGap Developer App. To test the local functionality, we build the application with mobile-spec. This allows us to ensure that each plugin was correctly installed. Eventually, we would like to add functional tests for the app logic.
You can run the local tests with:
$ phonegap run android --test
$ phonegap run ios --test
$ phonegap run wp8 --test
The served application is the app served by the CLI. To test the server functionality, we serve an instance of mobile-spec. We can then use the manual and automatic tests to ensure that the server provided the correct version of Cordova, the plugins, and the navigation logic.
You can run the served tests with:
$ cd tests/
$ phonegap serve
# now connect with the latest build of the PG App
It's as easy as a copy and paste.
- Copy all content of
cordova-mobile-spec
- Paste the content into
tests/www
On your first run of the tests, you may see some modified files. This is expected
because the test runner invoked by --test
modifies certain files to support
our app's configuration.
See the CONTRIBUTING.md file for details.