Skip to content

Commit

Permalink
fix(tests): harness now setup to take updates to tests and sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-bansil committed Aug 8, 2016
1 parent 638eb27 commit cfd1950
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"mkpath": "^1.0.0",
"node-version-compare": "^1.0.1",
"plist": "^1.2.0",
"semantic-release": "^4.3.5"
"semantic-release": "^4.3.5",
"wd": "^0.4.0"
},
"config": {
"commitizen": {
Expand Down
6 changes: 4 additions & 2 deletions tests-harness/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ android update sdk --no-ui

```sh
cordova prepare
cordova plugin add ../ --link --variable BRANCH_KEY=key_live_fnmRM1FXtu11t6e4LU8WsldpvDcA0bzv --variable URI_SCHEME=testbed
cordova plugin add ../tests --link
cordova compile
```

1. Finally run the tests:

```
cordova run ios --emulator
cordova run android --emulator
./android-test.sh
./ios-test.sh
```
5 changes: 5 additions & 0 deletions tests-harness/android-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

rm -rf platforms android
cordova prepare android
cordova run android --emulator
5 changes: 0 additions & 5 deletions tests-harness/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<plugin name="io.branch.sdk-tests" spec="../tests" />
<plugin name="cordova-plugin-test-framework" spec="http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework.git" />
<engine name="android" spec="~5.2.1" />
<engine name="ios" spec="~4.2.0" />
<plugin name="io.branch.sdk" spec="../">
<variable name="BRANCH_KEY" value="key_live_agl5WIycmYGmaquXWgXBDldgzCm30vXC" />
<variable name="URI_SCHEME" value="amit" />
</plugin>
</widget>
5 changes: 5 additions & 0 deletions tests-harness/ios-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

rm -rf platforms ios
cordova prepare ios
cordova run ios --emulator

0 comments on commit cfd1950

Please sign in to comment.