Class: Minke::Tasks::Cucumber
Instance Method Summary collapse
Methods inherited from Task
#build_address, #copy_assets, #execute_rake_tasks, #initialize, #load_consul_data, #log, #run_command_in_container, #run_steps, #run_with_block, #wait_for_health_check
Constructor Details
This class inherits a constructor from Minke::Tasks::Task
Instance Method Details
#get_features(args) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/minke/tasks/cucumber.rb', line 23 def get_features args if args != nil && args[:feature] != nil feature = "--tags #{args[:feature]}" else feature = "" end end |
#run(args = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/minke/tasks/cucumber.rb', line 5 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 |