Class: Assert::Runner
- Inherits:
-
Object
- Object
- Assert::Runner
- Defined in:
- lib/assert/runner.rb
Instance Method Summary collapse
- #count(type) ⇒ Object
-
#initialize(suite, view) ⇒ Runner
constructor
a Runner runs a suite of tests.
- #run ⇒ Object
Constructor Details
Instance Method Details
#count(type) ⇒ Object
24 25 26 |
# File 'lib/assert/runner.rb', line 24 def count(type) @suite.count(type) end |
#run ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/assert/runner.rb', line 12 def run @view.fire(:on_start) @suite.setup benchmark { run_suite } @suite.teardown @view.fire(:on_finish) count(:failed) + count(:errored) end |