Sha256: a0d70a2e6adb0a8cb9c3c16dd26d3e0d8acce62ce341b85c6f4c28b8823fa42c

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 KB

Contents

module Lopata
  module Observers
    # Lopata allows observe scenarios execution.
    # All the observers are subclasses of Lopata::Observers::BaseObserver.
    #
    # @see Lopata::Observers::ConsoleOutputObserver for implementation example
    class BaseObserver
      # 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]
      def started(world)
      end

      # 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]
      def finished(world)
      end

      # Called before single scenario execution.
      # @param scenario [Lopata::Scenario::Execution]
      def scenario_started(scenario)
      end

      # Called after single scenario execution.
      # @param scenario [Lopata::Scenario::Execution]
      def scenario_finished(scenario)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lopata-0.1.13 lib/lopata/observers/base_observer.rb
lopata-0.1.12 lib/lopata/observers/base_observer.rb
lopata-0.1.11 lib/lopata/observers/base_observer.rb
lopata-0.1.10 lib/lopata/observers/base_observer.rb
lopata-0.1.9 lib/lopata/observers/base_observer.rb
lopata-0.1.8 lib/lopata/observers/base_observer.rb
lopata-0.1.7 lib/lopata/observers/base_observer.rb