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