Sha256: 91a383ed1bccb5f9840304ce7fe0ca517784a99c52d3f2d57139d782c18e1f2e
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
require 'thor' require 'testgen/generators/project' module TestGen class CLI < Thor desc "project <project_name>", "Create a new test project" method_option :pageobject_driver, :type => :string, :required => false, :desc => "Use the PageObject gem to drive browsers. Valid values are 'watir' and 'selenium'" method_option :with_lib, :type => :boolean, :desc => "Place shared objects under lib directory" method_option :with_gametel, :type => :boolean, :desc => "Add support for gametel gem" method_option :with_mohawk, :type => :boolean, :desc => 'Adds support for mohawk gem' method_option :with_appium, :type => :boolean, :desc => 'Add support for appium' def project(name) driver = options[:pageobject_driver].nil? ? 'none' : options[:pageobject_driver] with_lib = options[:with_lib] ? 'true' : 'false' with_gametel = options[:with_gametel] ? 'true' : 'false' with_mohawk = options[:with_mohawk] ? 'true' : 'false' with_appium = options[:with_appium] ? 'true' : 'false' TestGen::Generators::Project.start([name, driver, with_lib, with_gametel, with_mohawk, with_appium]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
testgen-0.9 | lib/testgen/cli.rb |
testgen-0.8.8 | lib/testgen/cli.rb |