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.
feature directory/ies prefix to the cucumber command. Ideal for running xvfb-run for terminal only cucumber tests.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/guard/cucumber/runner.rb', line 22 def run(paths, = {}) return false if paths.empty? cmd = cucumber_command(paths, ) msg1 = "Running all Cucumber features: #{cmd}" msg2 = "Running Cucumber features: #{cmd}" msg = (paths == ["features"] ? msg1 : msg2) = [:message] || msg paths = Focuser.focus(paths, [:focus_on]) if [:focus_on] cmd = cucumber_command(paths, ) Compat::UI.info , reset: true system(cmd) end |