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-1.9.0.rc3 unittests/setup/options.rb
commonwatir-1.9.0.rc2 unittests/setup/options.rb
commonwatir-1.9.0.rc1 unittests/setup/options.rb
commonwatir-1.8.1 unittests/setup/options.rb
commonwatir-1.8.1.rc1 unittests/setup/options.rb
commonwatir-1.8.0 unittests/setup/options.rb
commonwatir-1.8.0.rc1 unittests/setup/options.rb
commonwatir-1.7.1 unittests/setup/options.rb
commonwatir-1.7.0 unittests/setup/options.rb
commonwatir-1.7.0.rc1 unittests/setup/options.rb
commonwatir-1.6.7 unittests/setup/options.rb
commonwatir-1.6.7.rc1 unittests/setup/options.rb
commonwatir-1.6.6 unittests/setup/options.rb
commonwatir-1.6.6.rc2 unittests/setup/options.rb
commonwatir-1.6.6.rc1 unittests/setup/options.rb