Sha256: defa800e92fe143dee09f4325a13769cf77b7c8707bab2a492eb4c0bdc23ed83

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

#!/usr/bin/env ruby

# Print some whitespace
4.times { puts }

# Check if cucumber_spinner is available
spinner_available = File.exists?('Gemfile') && File.open('Gemfile').read.scan(/cucumber_spinner/).any?
format_args = spinner_available ? ['--format', 'CucumberSpinner::CuriousProgressBarFormatter'] : ['--format', 'progress']

# Check if parallel_tests is available
parallel_tests_available = ['rake', 'parallel:spec'] if File.exists?('Gemfile') && File.open('Gemfile').read.scan(/parallel_tests/).any?

if parallel_tests_available
  puts "Using parallel_tests ...\n\n"
  exec *['b', 'rake', 'parallel:features', ARGV].flatten
else
  exec *["b", "cucumber", format_args, ARGV].flatten
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geordi-0.4.2 bin/cuc