Sha256: a1c2600fe358436c7bad48b6fcb1d1ff531b2138e92f4323e176b0e4f24039bf
Contents?: true
Size: 847 Bytes
Versions: 4
Compression:
Stored size: 847 Bytes
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" 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' TestGen::Generators::Project.start([name, driver, with_lib, with_gametel]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
testgen-0.5.2 | lib/testgen/cli.rb |
testgen-0.5.1 | lib/testgen/cli.rb |
testgen-0.5 | lib/testgen/cli.rb |
testgen-0.4 | lib/testgen/cli.rb |