Sha256: f9ca16af02910228fb9cd7e423e0da2aaecc7f668de16588f7ef59399a464fdd
Contents?: true
Size: 544 Bytes
Versions: 16
Compression:
Stored size: 544 Bytes
Contents
class Spork::RunStrategy::Forking < Spork::RunStrategy def self.available? Kernel.respond_to?(:fork) end 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 def abort @child && @child.abort end def preload test_framework.preload end def running? @child && @child.running? end end
Version data entries
16 entries across 16 versions & 4 rubygems