Module: Guard::Cucumber::Runner
- Defined in:
- lib/guard/cucumber/runner.rb
Overview
The Cucumber runner handles the execution of the cucumber binary.
Class Method Summary collapse
-
.run(paths, options = { }) ⇒ Boolean
Run the supplied features.
Class Method Details
.run(paths, options = { }) ⇒ Boolean
Run the supplied features.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/guard/cucumber/runner.rb', line 20 def run(paths, = { }) return false if paths.empty? = [:message] || (paths == ['features'] ? "Running all Cucumber features: #{ cucumber_command(paths, ) }" : "Running Cucumber features: #{ cucumber_command(paths, ) }") paths = [:focus_on] ? Focuser.focus(paths, [:focus_on]) : paths UI.info , :reset => true system(cucumber_command(paths, )) end |