class Test::Unit::UI::TestRunner
属性
listeners[R]
公共类方法
new(suite, options={}) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/ui/testrunner.rb, line 10 def initialize(suite, options={}) if suite.respond_to?(:suite) @suite = suite.suite else @suite = suite end @options = options @listeners = @options[:listeners] || [] end
公共实例方法
start() 点击切换源代码
开始测试运行。
# File test-unit-3.6.7/lib/test/unit/ui/testrunner.rb, line 21 def start setup_mediator attach_to_mediator attach_listeners start_mediator end
私有实例方法
attach_listeners() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/ui/testrunner.rb, line 33 def attach_listeners @listeners.each do |listener| listener.attach_to_mediator(@mediator) end end
diff_target_string?(string) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/ui/testrunner.rb, line 43 def diff_target_string?(string) Assertions::AssertionMessage.diff_target_string?(string) end
prepare_for_diff(from, to) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/ui/testrunner.rb, line 47 def prepare_for_diff(from, to) Assertions::AssertionMessage.prepare_for_diff(from, to) end
setup_mediator() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/ui/testrunner.rb, line 29 def setup_mediator @mediator = TestRunnerMediator.new(@suite, @options) end
start_mediator() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/ui/testrunner.rb, line 39 def start_mediator @mediator.run end