paulpatarinski / Cordova-Calabash-iOS-Plugin

Cordova Calabash iOS Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);
}

Steps to Upgrade Calabash

  1. Install the gem
gem install calabash-cucumber -v 0.21.2
  1. Unzip the framework
/Users/mobileappcreator/.rvm/gems/ruby-2.4.1/gems/calabash-cucumber-0.21.2/staticlib/calabash.framework.zip
  1. 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

About

Cordova Calabash iOS Plugin

License:MIT License


Languages

Language:Objective-C 99.1%Language:JavaScript 0.9%