Sha256: eb991424af559b37143df1edf4a02e6bff6396e7b1ce209515f598185f18b8c0

Contents?: true

Size: 799 Bytes

Versions: 99

Compression:

Stored size: 799 Bytes

Contents

require 'rubygems'
require 'drb'
$:.unshift(File.dirname(__FILE__) + "/../../..")  # directory of spork.rb
require 'spork'

class MagazineSlave
  include DRb::DRbUndumped
  attr_reader :id_num
  def initialize(id_num, test_framework_short_name)
    @id_num = id_num
    @test_framework = Spork::TestFramework.factory(STDOUT, STDERR,
                                                   test_framework_short_name)
#    ENV["DRB"] = 'true'
#    Spork.using_spork!
    return(nil) unless preload
  end

  def run(argv, stderr, stdout)
    $stdout, $stderr = stdout, stderr
    Spork.exec_each_run
    load @test_framework.helper_file
    @test_framework.run_tests(argv, stderr, stdout)
    puts "  <-- Slave(#{@id_num}) run done!"; stdout.flush
  end

  def preload
    @test_framework.preload
  end

end

Version data entries

99 entries across 99 versions & 7 rubygems

Version Path
spork-0.9.0.rc6 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.9.0.rc5 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.9.0.rc4 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.9.0.rc3 lib/spork/run_strategy/magazine/magazine_slave.rb
nimboids-spork-0.8.99 lib/spork/run_strategy/magazine/magazine_slave.rb
nimboids-spork-0.9.0.rc2 lib/spork/run_strategy/magazine/magazine_slave.rb
invo-sporknife-0.1.0.3 lib/spork/run_strategy/magazine/magazine_slave.rb
invo-sporknife-0.1.0.2 lib/spork/run_strategy/magazine/magazine_slave.rb
invo-sporknife-0.1.0.1 lib/spork/run_strategy/magazine/magazine_slave.rb
invo-sporknife-0.1.0 lib/spork/run_strategy/magazine/magazine_slave.rb
invo-sporknife-0.1.0.pre lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.9.0.rc2 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.9.0.rc lib/spork/run_strategy/magazine/magazine_slave.rb
wakiki-spork-0.8.5 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.8.4 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.8.3 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.8.2 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.8.1 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.8.0 lib/spork/run_strategy/magazine/magazine_slave.rb