This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from hwillson/issue-8
Test plugin improvements
- Loading branch information
Showing
4 changed files
with
110 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# `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 | ||
``` | ||
|
||
2) Make sure the `GCDWebServer` submodule is pulled in: | ||
|
||
``` | ||
cd cordova-plugin-meteor-webapp | ||
git submodule update --init --recursive | ||
``` | ||
|
||
3) Create a new test Cordova app: | ||
|
||
``` | ||
cd ~ | ||
cordova create test-app | ||
``` | ||
|
||
4) 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 | ||
``` | ||
|
||
5) Add the `ios` platform: | ||
|
||
``` | ||
cordova platform add ios | ||
``` | ||
|
||
6) Add a [`build.json`](https://cordova.apache.org/docs/en/latest/guide/platforms/ios/#using-buildjson) file to the root of your `test-app`, that includes your Apple Developer Team ID: | ||
|
||
```json | ||
{ | ||
"ios": { | ||
"debug": { | ||
"developmentTeam": "ABC123DEF456" | ||
}, | ||
"release": { | ||
"developmentTeam": "ABC123DEF456", | ||
"codeSignIdentity": "iPhone Developer", | ||
"packageType": "ad-hoc" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
7) Update the `test-app`'s `config.xml` to point to the test runner: | ||
|
||
Change | ||
|
||
```xml | ||
<content src="index.html" /> | ||
``` | ||
|
||
to | ||
|
||
```xml | ||
<content src="cdvtests/index.html" /> | ||
``` | ||
|
||
8) Run the tests on a device or using the iOS emulator: | ||
|
||
``` | ||
cordova emulate ios | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "cordova-plugin-meteor-webapptests", | ||
"version": "1.3.1", | ||
"cordova": { | ||
"id": "cordova-plugin-meteor-webapp-tests", | ||
"platforms": [ | ||
"android", | ||
"ios" | ||
] | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/meteor/cordova-plugin-meteor-webapp" | ||
}, | ||
"keywords": [ | ||
"cordova", | ||
"meteor", | ||
"ecosystem:cordova", | ||
"cordova-android", | ||
"cordova-ios" | ||
], | ||
"author": "Meteor Development Group", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters