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