Class: Geordi::Cucumber

Inherits:
Object
  • Object
show all
Defined in:
lib/geordi/cucumber.rb

Instance Method Summary collapse

Instance Method Details

#run(files, cucumber_options, options = {}) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/geordi/cucumber.rb', line 12

def run(files, cucumber_options, options = {})
  self.argv = files + cucumber_options.map { |option| option.split('=') }.flatten
  self.settings = Geordi::Settings.new

  consolidate_rerun_txt_files
  show_features_to_run

  command = use_parallel_tests?(options) ? parallel_execution_command : serial_execution_command
  Interaction.note_cmd(command) if options[:verbose]

  puts # Make newline
  system command
end