Sha256: b9ecec0c9523ea35344b9721c86fbf025c85d854bbd9d7c1b973f745cf39bc3f

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 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 world [Lopata::Scenario::Execution]
      def scenario_started(scenario)
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lopata-0.1.6 lib/lopata/observers/base_observer.rb