Sha256: 3467447432446286617a3e36c69f0896b861a4213ad6bd13a871c5c331491d7e

Contents?: true

Size: 659 Bytes

Versions: 17

Compression:

Stored size: 659 Bytes

Contents

module Minke
  module Tasks
    class Cucumber < Task

      def run args = nil
      	puts "## Running cucumber with tags #{args}"

      	begin
          status = 0
      	  @compose.up

          run_with_block do
            status = @helper.execute_shell_command "cucumber --color -f pretty #{get_features args}"
          end

      	ensure
      		@compose.down

          @helper.fatal_error "Cucumber steps failed" unless status == 0
      	end
      end

      def get_features args
        if args != nil && args[:feature] != nil
      		feature = "--tags #{args[:feature]}"
      	else
      		feature = ""
      	end
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
minke-1.10.0 lib/minke/tasks/cucumber.rb
minke-1.9.9 lib/minke/tasks/cucumber.rb
minke-1.9.8 lib/minke/tasks/cucumber.rb
minke-1.9.7 lib/minke/tasks/cucumber.rb
minke-1.9.6 lib/minke/tasks/cucumber.rb
minke-1.9.5 lib/minke/tasks/cucumber.rb
minke-1.9.4 lib/minke/tasks/cucumber.rb
minke-1.9.3 lib/minke/tasks/cucumber.rb
minke-1.9.2 lib/minke/tasks/cucumber.rb
minke-1.9.1 lib/minke/tasks/cucumber.rb
minke-1.9.0 lib/minke/tasks/cucumber.rb
minke-1.8.3 lib/minke/tasks/cucumber.rb
minke-1.8.2 lib/minke/tasks/cucumber.rb
minke-1.8.1 lib/minke/tasks/cucumber.rb
minke-1.8.0 lib/minke/tasks/cucumber.rb
minke-1.6.1 lib/minke/tasks/cucumber.rb
minke-1.6.0 lib/minke/tasks/cucumber.rb