Sha256: e69a0d47035691cde668a4761e3bff47eab4c0ca03867fbb6e8f6531404808a6

Contents?: true

Size: 835 Bytes

Versions: 2

Compression:

Stored size: 835 Bytes

Contents

module InfinityTest
  class Runner
    attr_reader :commands, :options, :application
    
    def initialize(options)
      @options = options
      @commands = []
      @application = InfinityTest.application
    end
    
    def run!
      load_configuration_file_or_read_the_options!
      start_continuous_testing!
    end
    
    def load_configuration_file_or_read_the_options!
      @application.load_configuration_file
      @application.config.use(
        :rubies => (options[:rubies] || @application.rubies),
        :test_framework => (options[:test_framework] || @application.config.test_framework),
        :verbose => options[:verbose] || @application.config.verbose
      )
    end
    
    def start_continuous_testing!
      InfinityTest::ContinuousTesting.new(:application => @application).start!
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
infinity_test-0.2.0 lib/infinity_test/runner.rb
infinity_test-0.1.0 lib/infinity_test/runner.rb