Sha256: 6e41a5843b5464091ccd1bff3272e7720dcc6f60d54d69657f5640746afb98b1
Contents?: true
Size: 855 Bytes
Versions: 4
Compression:
Stored size: 855 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? ? 'export AUTOTEST=1 ;' : '')#display color when we are in a terminal cmd = "export RAILS_ENV=test ; #{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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
parallel_tests-0.3.3 | lib/parallel_cucumber.rb |
parallel_tests-0.3.2 | lib/parallel_cucumber.rb |
parallel_tests-0.3.1 | lib/parallel_cucumber.rb |
parallel_tests-0.3.0 | lib/parallel_cucumber.rb |