class SolargraphTestCoverage::TestRunner
Parent Class for different testing frameworks
Public Class Methods
new(test_file)
click to toggle source
# File lib/solargraph_test_coverage/test_runner.rb, line 15 def initialize(test_file) @test_file = test_file @result = nil end
with(test_file)
click to toggle source
# File lib/solargraph_test_coverage/test_runner.rb, line 6 def self.with(test_file) case Config.test_framework when 'rspec' RSpecRunner.new(test_file) when 'minitest' MinitestRunner.new(test_file) end end
Public Instance Methods
passed?()
click to toggle source
# File lib/solargraph_test_coverage/test_runner.rb, line 29 def passed? raise NotImplementedError end
run!()
click to toggle source
# File lib/solargraph_test_coverage/test_runner.rb, line 20 def run! @result = test_framework_runner.run(test_options) self end
test_framework_runner()
click to toggle source
# File lib/solargraph_test_coverage/test_runner.rb, line 33 def test_framework_runner raise NotImplementedError end
test_options()
click to toggle source
# File lib/solargraph_test_coverage/test_runner.rb, line 25 def test_options raise NotImplementedError end