parallel_tests 0.4.19 → 0.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.19
1
+ 0.4.20
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), 'parallel_tests')
3
3
  class ParallelCucumber < ParallelTests
4
4
  def self.run_tests(test_files, process_number, options)
5
5
  color = ($stdout.tty? ? 'AUTOTEST=1 ; export AUTOTEST ;' : '')#display color when we are in a terminal
6
- runtime_logging = "--format ParallelCucumber::RuntimeLogger --out #{runtime_log}"
6
+ runtime_logging = " --format ParallelCucumber::RuntimeLogger --out #{runtime_log}"
7
7
  cmd = "#{color} #{executable}"
8
8
  cmd << runtime_logging if File.directory?(File.dirname(runtime_log))
9
9
  cmd << " #{options[:test_options]} #{test_files*' '}"
@@ -115,7 +115,7 @@ class ParallelTests
115
115
 
116
116
  def self.tests_with_runtime(root)
117
117
  tests = find_tests(root)
118
- lines = File.read("#{root}/../#{runtime_log}").split("\n") rescue []
118
+ lines = File.read(runtime_log).split("\n") rescue []
119
119
 
120
120
  # use recorded test runtime if we got enough data
121
121
  if lines.size * 1.5 > tests.size
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{parallel_tests}
8
- s.version = "0.4.19"
8
+ s.version = "0.4.20"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
@@ -45,7 +45,7 @@ describe ParallelCucumber do
45
45
  end
46
46
 
47
47
  it "uses options passed in" do
48
- ParallelCucumber.should_receive(:open).with{|x,y| x =~ %r{script/cucumber -p default}}.and_return mocked_process
48
+ ParallelCucumber.should_receive(:open).with{|x,y| x =~ %r{script/cucumber .* -p default}}.and_return mocked_process
49
49
  ParallelCucumber.run_tests(['xxx'],1,:test_options => '-p default')
50
50
  end
51
51
  end
@@ -53,7 +53,7 @@ def test_tests_in_groups(klass, folder, suffix)
53
53
  file
54
54
  end
55
55
 
56
- @log = "#{FAKE_RAILS_ROOT}/#{klass.runtime_log}"
56
+ @log = klass.runtime_log
57
57
  `mkdir #{File.dirname(@log)}`
58
58
  `rm -f #{@log}`
59
59
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41
4
+ hash: 39
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 19
10
- version: 0.4.19
9
+ - 20
10
+ version: 0.4.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Grosser