module Friendly::Cukes

Constants

VERSION
VERSION_INFO

Public Class Methods

create_app(app) click to toggle source

Description : creates a new cucumber test automation framework under the given app (directory) name Author : Chandra sekaran Arguments :

app         : name of the cucumber app
# File lib/friendly/cukes.rb, line 18
def self.create_app(app)
  app = "test" if app.nil? || app.empty?
  directory_name = "#{Dir.pwd}/#{app}"
  Dir.mkdir(directory_name) unless File.exists?(directory_name)
  FileUtils.cp_r("#{Gem.loaded_specs['friendly-cukes'].full_gem_path}/lib/friendly/cukes/framework/.", directory_name)
  puts "*** The generic ruby-cucumber automation framework has been created under #{directory_name}"
  puts "*** Run 'cd #{app}' and 'bundle install' and get start with friendly-cukes"
  puts "*** For Windows make sure <ruby root>/bin has the latest ChromeDriver.exe and IEDriverServer.exe (2.45.0.0-32-bit), without which the framework wont run"
end