Sha256: 7ce9c662a938cc7fc8ee54ccbad6666bc9aa1fc3c0c98f2cfe04a0544c965bf6

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

require 'benchmark'

module Omnitest
  module Command
    class ScenarioAction < Omnitest::Command::Base
      include RunAction

      # Invoke the command.
      def call
        banner "Starting Omnitest (v#{Omnitest::VERSION})"
        elapsed = Benchmark.measure do
          setup
          scenarios = parse_subcommand(args.shift, args.shift)
          run_action(scenarios, action, options[:concurrency])
        end
        banner "Omnitest is finished. #{Core::Util.duration(elapsed.real)}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnitest-0.2.2 lib/omnitest/command/scenario_action.rb
omnitest-0.2.1 lib/omnitest/command/scenario_action.rb