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