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
/*global phantom:true, console:true, WebPage:true, Date:true*/ | |
(function () { | |
var url, timeout, page, defer; | |
if (phantom.args.length < 1) { | |
console.log("Usage: phantomjs run-mocha.coffee URL [timeout]"); | |
phantom.exit(); | |
} | |
url = phantom.args[0]; |
To run on ios:
- Install XCode (recommended) or XCode command line tools by
xcode-select --install
- Into XCode settings, go to "Downloads" tab and download iOS 9.2 emulator
- Compile native app and run it on simulator via
npm run ios
To run on Android:
- Set up Android environment
- Create emulator via
npm run android-emulator-create
- Run emulator via npm run android-emulator
- Compile native code and run it on emulator via
npm run android