Class: Moto::Reporting::Listeners::Base
- Inherits:
-
Object
- Object
- Moto::Reporting::Listeners::Base
- Defined in:
- lib/reporting/listeners/base.rb
Overview
Base class for listeners that report results of testing ‘outside’ of the application.
Direct Known Subclasses
Attempts, ConsoleDots, JunitXml, NoProgress, Silent, SummaryOnly, SummaryShort, Webui
Instance Attribute Summary collapse
-
#run_params ⇒ Object
readonly
Returns the value of attribute run_params.
Instance Method Summary collapse
-
#end_run(run_status) ⇒ Object
Abstract Invoked when whole batch of tests ends.
-
#end_test(test_status) ⇒ Object
Abstract Invoked when a single test is finished.
-
#initialize(run_params) ⇒ Base
constructor
A new instance of Base.
-
#start_run ⇒ Object
Invoked when whole batch of tests starts.
-
#start_test(test_status, test_metadata) ⇒ Object
Abstract Invoked when a single test is started.
Constructor Details
#initialize(run_params) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/reporting/listeners/base.rb', line 11 def initialize(run_params) @run_params = run_params end |
Instance Attribute Details
#run_params ⇒ Object (readonly)
Returns the value of attribute run_params.
8 9 10 |
# File 'lib/reporting/listeners/base.rb', line 8 def run_params @run_params end |
Instance Method Details
#end_run(run_status) ⇒ Object
Abstract Invoked when whole batch of tests ends
22 23 24 |
# File 'lib/reporting/listeners/base.rb', line 22 def end_run(run_status) # Abstract end |
#end_test(test_status) ⇒ Object
Abstract Invoked when a single test is finished
34 35 36 |
# File 'lib/reporting/listeners/base.rb', line 34 def end_test(test_status) # Abstract end |
#start_run ⇒ Object
Invoked when whole batch of tests starts
16 17 18 |
# File 'lib/reporting/listeners/base.rb', line 16 def start_run # Abstract end |
#start_test(test_status, test_metadata) ⇒ Object
Abstract Invoked when a single test is started
28 29 30 |
# File 'lib/reporting/listeners/base.rb', line 28 def start_test(test_status, ) # Abstract end |