Class: Moto::Reporting::Listeners::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/reporting/listeners/base.rb

Overview

Base class for listeners that report results of testing ‘outside’ of the application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(run_params) ⇒ Base

Returns a new instance of Base.

Parameters:

  • run_params (String)

    Described in detail in [Moto::Reporting::TestReporter]



11
12
13
# File 'lib/reporting/listeners/base.rb', line 11

def initialize(run_params)
  @run_params = run_params
end

Instance Attribute Details

#run_paramsObject (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_runObject

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