class TestBench::Executor
Attributes
binding[R]
kernel[R]
Public Class Methods
build()
click to toggle source
# File lib/test_bench/executor.rb, line 11 def self.build binding = TOPLEVEL_BINDING new binding, Kernel end
new(binding, kernel)
click to toggle source
# File lib/test_bench/executor.rb, line 6 def initialize binding, kernel @binding = binding @kernel = kernel end
Public Instance Methods
call(files)
click to toggle source
# File lib/test_bench/executor.rb, line 17 def call files files.each do |file| execute file end telemetry.passed? end
execute(file)
click to toggle source
# File lib/test_bench/executor.rb, line 25 def execute file telemetry.file_started file begin unbound_context_method = TestBench::Structure.instance_method :context bound_context_method = unbound_context_method.bind binding.receiver bound_context_method.call :suppress_exit => true do kernel.load File.expand_path file end ensure telemetry.file_finished file end end
telemetry()
click to toggle source
# File lib/test_bench/executor.rb, line 41 def telemetry Telemetry::Registry.get binding end