Sha256: fea263a9321bc665f2c0f716022aeaad7719e5d06a3073b3b283462625204b62
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 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" def project(name) driver = options[:pageobject_driver].nil? ? 'none' : options[:pageobject_driver] with_lib = options[:with_lib] == true ? 'true' : 'false' TestGen::Generators::Project.start([name, driver, with_lib]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
testgen-0.3 | lib/testgen/cli.rb |
testgen-0.2.4 | lib/testgen/cli.rb |