Sha256: 0a4c3182f2e78d7100b317f53d48a22043fd749352fa95ba1285f3aa584c1b38

Contents?: true

Size: 884 Bytes

Versions: 79

Compression:

Stored size: 884 Bytes

Contents

class Spork::RunStrategy
  attr_reader :test_framework
  @@run_strategies = []

  def initialize(test_framework)
    @test_framework = test_framework
  end

  def preload
    raise NotImplementedError
  end

  def run(argv, input, output)
    raise NotImplementedError
  end

  def cleanup
    raise NotImplementedError
  end

  def running?
    raise NotImplementedError
  end

  def assert_ready!
    raise NotImplementedError
  end

  def abort
    raise NotImplementedError
  end

  protected
    def self.factory(test_framework)
      if RUBY_PLATFORM =~ /mswin|mingw|java/
        Spork::RunStrategy::Magazine.new(test_framework)
      else
        Spork::RunStrategy::Forking.new(test_framework)
      end
    end

    def self.inherited(subclass)
      @@run_strategies << subclass
    end

end

Dir[File.dirname(__FILE__) + "/run_strategy/*.rb"].each { |file| require file }

Version data entries

79 entries across 79 versions & 3 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.7.4 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.7.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
spork-1.0.0rc4 lib/spork/run_strategy.rb
spork-1.0.0rc4-x86-mswin32 lib/spork/run_strategy.rb
spork-1.0.0rc4-x86-mingw32 lib/spork/run_strategy.rb
classiccms-0.7.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.7.1 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.7.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.9 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.8 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.7 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.6 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.5 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.4 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.1 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.6.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb
classiccms-0.5.17 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy.rb