parallel_tests 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -71,8 +71,9 @@ module ParallelTests
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def self.profile_from_config
|
74
|
-
|
75
|
-
|
74
|
+
# copied from https://github.com/cucumber/cucumber/blob/master/lib/cucumber/cli/profile_loader.rb#L85
|
75
|
+
config = Dir.glob('{,.config/,config/}cucumber{.yml,.yaml}').first
|
76
|
+
if config && File.read(config) =~ /^parallel:/
|
76
77
|
"--profile parallel"
|
77
78
|
end
|
78
79
|
end
|
@@ -56,7 +56,7 @@ describe ParallelTests::Cucumber do
|
|
56
56
|
context "with parallel profile in config/cucumber.yml" do
|
57
57
|
before do
|
58
58
|
file_contents = 'parallel: -f progress'
|
59
|
-
|
59
|
+
Dir.stub(:glob).and_return ['config/cucumber.yml']
|
60
60
|
File.stub(:read).with('config/cucumber.yml').and_return file_contents
|
61
61
|
end
|
62
62
|
|
@@ -79,14 +79,14 @@ describe ParallelTests::Cucumber do
|
|
79
79
|
it "does not use parallel profile if config/cucumber.yml does not contain it" do
|
80
80
|
file_contents = 'blob: -f progress'
|
81
81
|
ParallelTests::Cucumber::Runner.should_receive(:open).with{|x,y| x =~ %r{script/cucumber .* foo bar}}.and_return mocked_process
|
82
|
-
|
82
|
+
Dir.should_receive(:glob).and_return ['config/cucumber.yml']
|
83
83
|
File.should_receive(:read).with('config/cucumber.yml').and_return file_contents
|
84
84
|
call(['xxx'],1,:test_options => 'foo bar')
|
85
85
|
end
|
86
86
|
|
87
87
|
it "does not use the parallel profile if config/cucumber.yml does not exist" do
|
88
88
|
ParallelTests::Cucumber::Runner.should_receive(:open).with{|x,y| x =~ %r{script/cucumber .*}}.and_return mocked_process
|
89
|
-
|
89
|
+
Dir.should_receive(:glob).and_return []
|
90
90
|
call(['xxx'],1,{})
|
91
91
|
end
|
92
92
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash: -
|
93
|
+
hash: -468151799403784543
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
segments:
|
101
101
|
- 0
|
102
|
-
hash: -
|
102
|
+
hash: -468151799403784543
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
105
|
rubygems_version: 1.8.24
|