Sha256: b561101f79c28edc2f13c8e1151724d8bc1c799ebb25e00faaae81fdba4dd729

Contents?: true

Size: 739 Bytes

Versions: 35

Compression:

Stored size: 739 Bytes

Contents

# setup/options
require 'user-choices'

module Watir
  module UnitTest
    class Options < UserChoices::Command
      include UserChoices
      def add_sources builder
        builder.add_source EnvironmentSource, :with_prefix, 'watir_'
        builder.add_source YamlConfigFileSource, :from_complete_path, 
          $suite_options_file
      end
      def add_choices builder
        builder.add_choice :coverage,
        :type => ['regression', 'all', 'known failures'],
        :default => 'regression'
      end
      def execute 
        Watir::UnitTest.options = @user_choices
      end 
    end
    def self.options
      @@options
    end
    def self.options= x
      @@options = x
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
commonwatir-3.0.0.rc3 unittests/setup/options.rb
commonwatir-3.0.0.rc2 unittests/setup/options.rb
commonwatir-3.0.0.rc1 unittests/setup/options.rb
commonwatir-2.0.4 unittests/setup/options.rb
commonwatir-2.0.3 unittests/setup/options.rb
commonwatir-2.0.2 unittests/setup/options.rb
commonwatir-2.0.2.rc1 unittests/setup/options.rb
commonwatir-2.0.1 unittests/setup/options.rb
commonwatir-2.0.0 unittests/setup/options.rb
commonwatir-2.0.0.rc3 unittests/setup/options.rb
commonwatir-2.0.0.rc2 unittests/setup/options.rb
commonwatir-1.9.2 unittests/setup/options.rb
commonwatir-1.9.2.rc1 unittests/setup/options.rb
commonwatir-1.9.1 unittests/setup/options.rb
commonwatir-1.9.1.rc1 unittests/setup/options.rb
commonwatir-1.9.0 unittests/setup/options.rb
commonwatir-1.9.0.rc7 unittests/setup/options.rb
commonwatir-1.9.0.rc6 unittests/setup/options.rb
commonwatir-1.9.0.rc5 unittests/setup/options.rb
commonwatir-1.9.0.rc4 unittests/setup/options.rb