class Drntest::TestExecutor
Public Class Methods
new(config, test_path, results)
click to toggle source
# File lib/drntest/test-executor.rb, line 24 def initialize(config, test_path, results) @config = config @test_path = test_path @results = results end
Public Instance Methods
execute()
click to toggle source
# File lib/drntest/test-executor.rb, line 30 def execute catch do |abort_tag| begin options = { :tag => @config.tag, :port => @config.port, :timeout => @config.timeout, } Droonga::Client.open(options) do |client| context = Context.new(client, @config, @results, abort_tag) operations.each do |operation| context.execute(operation) end context.finish end rescue @results.errors << $! end end end
Private Instance Methods
operations()
click to toggle source
# File lib/drntest/test-executor.rb, line 52 def operations loader = TestLoader.new(@config, @test_path) loader.load end