Module: Guard::Cucumber::Runner

Defined in:
lib/guard/cucumber/runners/runner.rb

Class Method Summary collapse

Class Method Details

.run(paths, options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/guard/cucumber/runners/runner.rb', line 5

def run(paths, options = {})
  message = options[:message] || (paths == ['features'] ? 'Run all Cucumber features' : "Run Cucumber features #{ paths.join(' ') }")
  UI.info message, :reset => true
  system(cucumber_command(paths, options))
end