Sha256: 8f7969c87721c140949604224ef4cd604544ae49a628eb14c3f1016f816207f2

Contents?: true

Size: 928 Bytes

Versions: 17

Compression:

Stored size: 928 Bytes

Contents

require '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

17 entries across 17 versions & 3 rubygems

Version Path
parallel_tests-0.6.20 lib/parallel_cucumber.rb
parallel_tests-instructure-0.6.19 lib/parallel_cucumber.rb
parallel_tests-0.6.19 lib/parallel_cucumber.rb
moxiesoft_parallel_tests-0.6.18 lib/parallel_cucumber.rb
parallel_tests-0.6.18 lib/parallel_cucumber.rb
parallel_tests-instructure-0.6.18 lib/parallel_cucumber.rb
parallel_tests-0.6.17 lib/parallel_cucumber.rb
parallel_tests-instructure-0.6.17 lib/parallel_cucumber.rb
parallel_tests-instructure-0.6.16 lib/parallel_cucumber.rb
parallel_tests-0.6.16 lib/parallel_cucumber.rb
parallel_tests-0.6.15 lib/parallel_cucumber.rb
parallel_tests-0.6.14 lib/parallel_cucumber.rb
parallel_tests-0.6.13 lib/parallel_cucumber.rb
parallel_tests-0.6.12 lib/parallel_cucumber.rb
parallel_tests-0.6.11 lib/parallel_cucumber.rb
parallel_tests-0.6.10 lib/parallel_cucumber.rb
parallel_tests-0.6.9 lib/parallel_cucumber.rb