Test your Cordova based apps with Calabash iOS.
#Usage Add the plugin to your project
cordova plugin add cordova-plugin-calabash-ios
Edit www/js/index.js
and add the following code inside onDeviceReady
if(window.calabash){
var success = function() {
console.log("Calabash Server started");
}
var failure = function() {
console.log("Error starting Calabash Server");
}
calabash.start(success, failure);
}
- Install the gem
gem install calabash-cucumber -v 0.21.2
- Unzip the framework
/Users/mobileappcreator/.rvm/gems/ruby-2.4.1/gems/calabash-cucumber-0.21.2/staticlib/calabash.framework.zip
- Copy/Replace the files
From :
/Users/mobileappcreator/.rvm/gems/ruby-2.4.1/gems/calabash-cucumber-0.21.2/staticlib/calabash.framework/Versions/A
To :
/Users/mobileappcreator/WIP/Cordova-Calabash-iOS-Plugin/src/ios/Frameworks/calabash.framework