Method: Kintama::Context::ClassMethods#run_tests
- Defined in:
- lib/kintama/context.rb
#run_tests(test_set, run_subcontexts, reporter) ⇒ Object
Run a specific set of tests using the given the reporter
250 251 252 253 254 255 256 257 258 259 |
# File 'lib/kintama/context.rb', line 250 def run_tests(test_set, run_subcontexts, reporter) @ran_tests = [] reporter.context_started(self) if reporter on_start_blocks.each { |b| instance_eval(&b) } test_set.each { |t| instance = t.new; instance.run(reporter); ran_tests << instance } subcontexts.each { |s| s.run(reporter) } if run_subcontexts on_finish_blocks.each { |b| instance_eval(&b) } reporter.context_finished(self) if reporter passed? end |