class Lopata::Observers::BaseObserver
Lopata
allows observe scenarios execution. All the observers are subclasses of Lopata::Observers::BaseObserver
.
@see Lopata::Observers::ConsoleOutputObserver
for implementation example
Public Instance Methods
finished(world)
click to toggle source
Called after all scenarios execution. All the scenarios are finished at the moment, so it may be used for output statistics.
@param world [Lopata::World]
# File lib/lopata/observers/base_observer.rb, line 20 def finished(world) end
scenario_finished(scenario)
click to toggle source
Called after single scenario execution. @param scenario [Lopata::Scenario::Execution]
# File lib/lopata/observers/base_observer.rb, line 30 def scenario_finished(scenario) end
scenario_started(scenario)
click to toggle source
Called before single scenario execution. @param scenario [Lopata::Scenario::Execution]
# File lib/lopata/observers/base_observer.rb, line 25 def scenario_started(scenario) end
started(world)
click to toggle source
Called before scenarios execution. All the scenarios are prepared at the moment, so it may be used to get number of scenarios via world.scenarios.count
@param world [Lopata::World]
# File lib/lopata/observers/base_observer.rb, line 13 def started(world) end