Sha256: 67205767e61fc877b7e5c13a6354d547ad66b788ce50a6300dcae99e737d05dd

Contents?: true

Size: 679 Bytes

Versions: 23

Compression:

Stored size: 679 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.stop
      		@compose.rm

          @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

23 entries across 23 versions & 1 rubygems

Version Path
minke-1.5.9 lib/minke/tasks/cucumber.rb
minke-1.5.8 lib/minke/tasks/cucumber.rb
minke-1.5.7 lib/minke/tasks/cucumber.rb
minke-1.5.6 lib/minke/tasks/cucumber.rb
minke-1.5.5 lib/minke/tasks/cucumber.rb
minke-1.5.4 lib/minke/tasks/cucumber.rb
minke-1.5.3 lib/minke/tasks/cucumber.rb
minke-1.5.2 lib/minke/tasks/cucumber.rb
minke-1.5.1 lib/minke/tasks/cucumber.rb
minke-1.5.0 lib/minke/tasks/cucumber.rb
minke-1.4.0 lib/minke/tasks/cucumber.rb
minke-1.3.0 lib/minke/tasks/cucumber.rb
minke-1.2.0 lib/minke/tasks/cucumber.rb
minke-1.1.0 lib/minke/tasks/cucumber.rb
minke-1.0.9 lib/minke/tasks/cucumber.rb
minke-1.0.8 lib/minke/tasks/cucumber.rb
minke-1.0.7 lib/minke/tasks/cucumber.rb
minke-1.0.6 lib/minke/tasks/cucumber.rb
minke-1.0.5 lib/minke/tasks/cucumber.rb
minke-1.0.4 lib/minke/tasks/cucumber.rb