Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 1.48 KB

DEVELOPMENT.md

File metadata and controls

76 lines (56 loc) · 1.48 KB

cordova-plugin-meteor-webapp Development

Running iOS Tests

  1. Start with a cloned copy of the cordova-plugin-meteor-webapp repo:
cd ~
git clone https://github.com/meteor/cordova-plugin-meteor-webapp.git
  1. Make sure the GCDWebServer submodule is pulled in:
cd cordova-plugin-meteor-webapp
git submodule update --init --recursive
  1. Create a new test Cordova app:
cd ~
cordova create test-app
  1. Add the cordova-plugin-meteor-webapp, cordova-plugin-meteor-webapp-tests, and cordova-plugin-test-framework plugins:
cd test-app
cordova plugin add https://github.com/apache/cordova-plugin-test-framework.git
cordova plugin add ../cordova-plugin-meteor-webapp/
cordova plugin add ../cordova-plugin-meteor-webapp/tests
  1. Add the ios platform:
cordova platform add ios
  1. Add a build.json file to the root of your test-app, that includes your Apple Developer Team ID:
{
  "ios": {
    "debug": {
      "developmentTeam": "ABC123DEF456"
    },
    "release": {
      "developmentTeam": "ABC123DEF456",
      "codeSignIdentity": "iPhone Developer",
      "packageType": "ad-hoc"
    }
  }
}
  1. Update the test-app's config.xml to point to the test runner:

Change

<content src="index.html" />

to

<content src="cdvtests/index.html" />
  1. Run the tests on a device or using the iOS emulator:
cordova emulate ios