Sha256: 705c6dc6ddadda2f340112909089b728ccd1b79060fd955c00cde6c5f43b9f3f
Contents?: true
Size: 752 Bytes
Versions: 78
Compression:
Stored size: 752 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 result = test_framework.run_tests(argv, stderr, stdout) Spork.exec_after_each_run result end @child.result end def abort @child && @child.abort end def preload test_framework.preload end def running? @child && @child.running? end def assert_ready! raise RuntimeError, "This process hasn't loaded the environment yet by loading the prefork block" unless Spork.using_spork? end end
Version data entries
78 entries across 78 versions & 3 rubygems