Sha256: fecda046d2bd3127690fb13fff468be17670ac2e79dc80ad1facc7d38df37d57

Contents?: true

Size: 695 Bytes

Versions: 8

Compression:

Stored size: 695 Bytes

Contents

require File.join(File.dirname(__FILE__), 'parallel_tests')

class ParallelCucumber < ParallelTests
  def self.run_tests(test_files, process_number, options)
    color = ($stdout.tty? ? 'AUTOTEST=1 ; export AUTOTEST ;' : '')#display color when we are in a terminal
    cmd = "#{color} #{executable} #{options} #{test_files*' '}"
    execute_command(cmd, process_number)
  end

  def self.executable
    if bundler_enabled?
      "bundle exec cucumber"
    elsif File.file?("script/cucumber")
      "script/cucumber"
    else
      "cucumber"
    end
  end

  protected

  def self.test_suffix
    ".feature"
  end

  def self.line_is_result?(line)
    line =~ /^\d+ (steps|scenarios)/
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
moxiesoft_parallel_tests-0.4.13 lib/parallel_cucumber.rb
parallel_tests-0.4.16 lib/parallel_cucumber.rb
parallel_tests-0.4.15 lib/parallel_cucumber.rb
parallel_tests-0.4.14 lib/parallel_cucumber.rb
parallel_tests-0.4.13 lib/parallel_cucumber.rb
moxiesoft_parallel_tests-0.4.12 lib/parallel_cucumber.rb
parallel_tests-0.4.12 lib/parallel_cucumber.rb
parallel_tests-0.4.11 lib/parallel_cucumber.rb