Sha256: 1df27d090a5adf07270a514ce1597fe5d93f7b3191cb4e5e4a81f8ff2dec5ebe

Contents?: true

Size: 637 Bytes

Versions: 4

Compression:

Stored size: 637 Bytes

Contents

desc 'cucumber [FILES]', 'Run Cucumber features'
long_desc <<-LONGDESC
Example: `geordi cucumber features/authentication_feature:3`

Runs Cucumber as you want: with `bundle exec`, `cucumber_spinner` detection,
separate Firefox for Selenium, etc.
LONGDESC

option :verbose, :aliases => '-v', :type => :boolean, :desc => 'Print the testing command'

def cucumber(*files)
  require 'geordi/cucumber'

  invoke_cmd 'bundle_install'

  if File.directory?('features')
    announce 'Running features'
    Geordi::Cucumber.new.run(files, :verbose => options.verbose) or fail 'Features failed.'
  else
    note 'Cucumber not employed.'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geordi-1.1.4 lib/geordi/commands/cucumber.rb
geordi-1.1.3 lib/geordi/commands/cucumber.rb
geordi-1.1.2 lib/geordi/commands/cucumber.rb
geordi-1.1.1 lib/geordi/commands/cucumber.rb