Sha256: 578f625da7f79e3b135be7879c4a2af23a0634d36b711fbe8f4eee634f7fcde7

Contents?: true

Size: 822 Bytes

Versions: 15

Compression:

Stored size: 822 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 abort
    raise NotImplementedError
  end

  protected
    def self.factory(test_framework)
      if RUBY_PLATFORM =~ /mswin|mingw/
        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

15 entries across 15 versions & 5 rubygems

Version Path
panjiva-spork-0.8.6 lib/spork/run_strategy.rb
panjiva-spork-0.8.5.1 lib/spork/run_strategy.rb
panjiva-spork-0.8.5 lib/spork/run_strategy.rb
spork-0.8.5 lib/spork/run_strategy.rb
invo-sporknife-0.1.0.3 lib/spork/run_strategy.rb
invo-sporknife-0.1.0.2 lib/spork/run_strategy.rb
spork-0.9.0.rc2 lib/spork/run_strategy.rb
spork-0.9.0.rc lib/spork/run_strategy.rb
wakiki-spork-0.8.5 lib/spork/run_strategy.rb
spork-0.8.4 lib/spork/run_strategy.rb
spork-0.8.3 lib/spork/run_strategy.rb
spork-0.8.2 lib/spork/run_strategy.rb
spork-0.8.1 lib/spork/run_strategy.rb
spork-0.8.0 lib/spork/run_strategy.rb
milhouse-spork-0.7.5.2 lib/spork/run_strategy.rb