Sha256: 9383b2292594a811ff57ca56e2e7c6055735612a871bc2186c73c214ea19dd0b

Contents?: true

Size: 963 Bytes

Versions: 13

Compression:

Stored size: 963 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
    runtime_logging = " --format ParallelCucumber::RuntimeLogger --out #{runtime_log}"
    cmd = "#{color} #{executable}"
    cmd << runtime_logging if File.directory?(File.dirname(runtime_log))
    cmd << " #{options[:test_options]} #{test_files*' '}"
    execute_command(cmd, process_number, options)
  end

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

  def self.runtime_log
    'tmp/parallel_runtime_cucumber.log'
  end

  protected

  def self.test_suffix
    ".feature"
  end

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
parallel_tests-0.6.8 lib/parallel_cucumber.rb
parallel_tests-0.6.7 lib/parallel_cucumber.rb
parallel_tests-0.6.6 lib/parallel_cucumber.rb
parallel_tests-0.6.5 lib/parallel_cucumber.rb
parallel_tests-0.6.4 lib/parallel_cucumber.rb
parallel_tests-0.6.3 lib/parallel_cucumber.rb
parallel_tests-0.6.2 lib/parallel_cucumber.rb
phene-parallel_tests-0.6.2 lib/parallel_cucumber.rb
parallel_tests-0.6.1 lib/parallel_cucumber.rb
parallel_tests-0.6.0 lib/parallel_cucumber.rb
parallel_tests-0.5.0 lib/parallel_cucumber.rb
parallel_tests-0.4.21 lib/parallel_cucumber.rb
parallel_tests-0.4.20 lib/parallel_cucumber.rb