class Oncall::Invocations::TestRunner
Public Instance Methods
run(err, out)
click to toggle source
# File lib/oncall/invocations/test_runner.rb, line 4 def run(err, out) reporter.report do |r| suite.map { |g| g.run(r) } end reporter.success? ? 0 : 1 end
Private Instance Methods
options()
click to toggle source
# File lib/oncall/invocations/test_runner.rb, line 35 def options Oncall.options end
reporter()
click to toggle source
# File lib/oncall/invocations/test_runner.rb, line 14 def reporter @reporter ||= Oncall::Reporter.new end
suite()
click to toggle source
# File lib/oncall/invocations/test_runner.rb, line 18 def suite files = [] test_files.each do |file| test_file = Oncall::TestFile.new(file) files << test_file end files end
test_files()
click to toggle source
# File lib/oncall/invocations/test_runner.rb, line 29 def test_files matched_files = Dir.glob(options.pattern) excluded_files = Dir.glob(options.exclude) matched_files - excluded_files end