Class Spork::RunStrategy::Forking
In: lib/spork/run_strategy/forking.rb
Parent: Spork::RunStrategy

Methods

abort   available?   preload   run   running?  

Public Class methods

[Source]

# File lib/spork/run_strategy/forking.rb, line 2
  def self.available?
    Kernel.respond_to?(:fork)
  end

Public Instance methods

[Source]

# File lib/spork/run_strategy/forking.rb, line 18
  def abort
    @child && @child.abort
  end

[Source]

# File lib/spork/run_strategy/forking.rb, line 22
  def preload
    test_framework.preload
  end

[Source]

# File lib/spork/run_strategy/forking.rb, line 6
  def run(argv, stderr, stdout)
    abort if running?

    @child = ::Spork::Forker.new do
      $stdout, $stderr = stdout, stderr
      load test_framework.helper_file
      Spork.exec_each_run
      test_framework.run_tests(argv, stderr, stdout)
    end
    @child.result
  end

[Source]

# File lib/spork/run_strategy/forking.rb, line 26
  def running?
    @child && @child.running?
  end

[Validate]