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 +1 -1
- data/lib/parallel_cucumber.rb +1 -1
- data/lib/parallel_tests.rb +1 -1
- data/parallel_tests.gemspec +1 -1
- data/spec/parallel_cucumber_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.20
|
data/lib/parallel_cucumber.rb
CHANGED
@@ -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*' '}"
|
data/lib/parallel_tests.rb
CHANGED
@@ -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(
|
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
|
data/parallel_tests.gemspec
CHANGED
@@ -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
|
data/spec/spec_helper.rb
CHANGED
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:
|
4
|
+
hash: 39
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 20
|
10
|
+
version: 0.4.20
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|