Sha256: b733e6ce809f15bf2296f9da7be8a84b1ebfaac66fd918b35cefa1948754657d

Contents?: true

Size: 753 Bytes

Versions: 1

Compression:

Stored size: 753 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?

use_parallel_tests = parallel_tests_available && (ARGV[0] == nil)

if use_parallel_tests
  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.3 bin/cuc