Class: Compatriot::MinitestReportDriver
- Inherits:
-
Minitest::StatisticsReporter
- Object
- Minitest::StatisticsReporter
- Compatriot::MinitestReportDriver
- Defined in:
- lib/compatriot/minitest_report_driver.rb
Instance Attribute Summary collapse
-
#tests ⇒ Object
Returns the value of attribute tests.
Instance Method Summary collapse
- #after_suite(suite) ⇒ Object
- #after_test(test) ⇒ Object
- #before_suite(suite) ⇒ Object
- #before_test(test) ⇒ Object
-
#initialize(options = {}) ⇒ MinitestReportDriver
constructor
A new instance of MinitestReportDriver.
- #record(test) ⇒ Object
- #report ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ MinitestReportDriver
Returns a new instance of MinitestReportDriver.
8 9 10 11 |
# File 'lib/compatriot/minitest_report_driver.rb', line 8 def initialize(={}) super($stdout, ) self.tests = [] end |
Instance Attribute Details
#tests ⇒ Object
Returns the value of attribute tests.
6 7 8 |
# File 'lib/compatriot/minitest_report_driver.rb', line 6 def tests @tests end |
Instance Method Details
#after_suite(suite) ⇒ Object
22 23 |
# File 'lib/compatriot/minitest_report_driver.rb', line 22 def after_suite(suite) end |
#after_test(test) ⇒ Object
16 17 |
# File 'lib/compatriot/minitest_report_driver.rb', line 16 def after_test(test) end |
#before_suite(suite) ⇒ Object
19 20 |
# File 'lib/compatriot/minitest_report_driver.rb', line 19 def before_suite(suite) end |
#before_test(test) ⇒ Object
13 14 |
# File 'lib/compatriot/minitest_report_driver.rb', line 13 def before_test(test) end |
#record(test) ⇒ Object
25 26 27 28 |
# File 'lib/compatriot/minitest_report_driver.rb', line 25 def record(test) super tests << test end |
#report ⇒ Object
30 31 32 33 |
# File 'lib/compatriot/minitest_report_driver.rb', line 30 def report super Compatriot::Reporter.new(tests).run end |