Method: Micron::ProcRunner#run_class
- Defined in:
- lib/micron/proc_runner.rb
#run_class ⇒ Object
Child process which runs an entire test file/class
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/micron/proc_runner.rb', line 61 def run_class $0 = "micron:proc_run_class" # ERR.puts "micron: proc_run_class (#{$$})" test_file = TestFile.new(test_filename) report(:start_file, test_file) begin test_file.load(false) results = test_file.run(ProcClazz) rescue Exception => ex results = [ex] end # pass data back to parent process data_file = File.join(ENV["MICRON_PATH"], "#{$$}.data") File.open(data_file, "w") do |f| results.each { |r| Marshal.dump(r, f) } end end |