lib/guard/cucumber/runner.rb
# Assembles the Cucumber command from the passed options.
#
# @param [Array<String>] paths the feature files or directories
# @param [Hash] options the options for the execution
# @option options [Boolean] :bundler use bundler or not
# @option options [Array<String>] :rvm a list of rvm version to use for
# the test
# @option options [Boolean] :notification show notifications
# @option options [String] :command_prefix allows adding an additional
# prefix to the cucumber command. Ideal for running xvfb-run for
# terminal only cucumber tests.
# @return [String] the Cucumber command
#
Assembles the Cucumber command from the passed options.
Assembles the Cucumber command from the passed options .
def cucumber_command(paths, options)
          cmd = []
          _add_cmd_prefix(cmd, options[:command_prefix])
          _add_rvm_options(cmd, options[:rvm])
          _add_bundler_options(cmd, options[:bundler])
          cmd << cucumber_exec(options)
          _add_cli_options(cmd, options[:cli])
          _add_notification(cmd, options)
          (cmd + paths).join(" ")
        end
def cucumber_command ( paths , options ) cmd = [ ] _add_cmd_prefix ( cmd , options [ :command_prefix ] ) _add_rvm_options ( cmd , options [ :rvm ] ) _add_bundler_options ( cmd , options [ :bundler ] ) cmd << cucumber_exec ( options ) _add_cli_options ( cmd , options [ :cli ] ) _add_notification ( cmd , options ) ( cmd + paths ) . join ( " " ) end
Assembles the Cucumber command from the passed options.
Assembles the Cucumber command from the passed options .
the Cucumber command
the Cucumber command
String
paths
options
:command_prefix allows adding an additional prefix to the cucumber command. Ideal for running xvfb-run for terminal only cucumber tests.
: command_prefix allows adding an additional prefix to the cucumber command . Ideal for running xvfb - run for terminal only cucumber tests .
options the options for the execution
options the options for the execution