Sha256: 4fe658e528e563e64731243f0beccfb0f2f6426a6ebe1339dd98fee5c3c499b4
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parallel_tests-0.4.19 | lib/parallel_cucumber.rb |