Sha256: 0d320c6c90e8654faea20fcd8ffd6a2fafbcd1a9e8ef0cc1bac0500065828c12
Contents?: true
Size: 876 Bytes
Versions: 1
Compression:
Stored size: 876 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 = "RAILS_ENV=test ; export RAILS_ENV ; #{color} #{executable} #{options} #{test_files*' '}" execute_command(cmd, process_number) end def self.executable if File.file?(".bundle/environment.rb") "bundle exec cucumber" elsif File.file?("script/cucumber") "script/cucumber" else "cucumber" end end protected def self.line_is_result?(line) line =~ /^\d+ (steps|scenarios)/ end def self.line_is_failure?(line) line =~ /^\d+ (steps|scenarios).*(\d{2,}|[1-9]) failed/ end def self.find_tests(root) Dir["#{root}**/**/*.feature"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parallel_tests-0.3.4 | lib/parallel_cucumber.rb |