parallel_tests 0.10.0 → 0.10.1
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/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ module ParallelTests
|
|
16
16
|
cmd = if File.file?("script/spec")
|
17
17
|
"script/spec"
|
18
18
|
elsif ParallelTests.bundler_enabled?
|
19
|
-
cmd = (run("bundle show rspec") =~ %r{
|
19
|
+
cmd = (run("bundle show rspec-core") =~ %r{Could not find gem.*} ? "spec" : "rspec")
|
20
20
|
"bundle exec #{cmd}"
|
21
21
|
else
|
22
22
|
%w[spec rspec].detect{|cmd| system "#{cmd} --version > /dev/null 2>&1" }
|
@@ -39,7 +39,7 @@ describe ParallelTests::RSpec::FailuresLogger do
|
|
39
39
|
it "should invoke spec for rspec 1" do
|
40
40
|
silence_warnings{ ParallelTests::RSpec::LoggerBase::RSPEC_1 = true }
|
41
41
|
ParallelTests.stub!(:bundler_enabled?).and_return true
|
42
|
-
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec").and_return "
|
42
|
+
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec-core").and_return "Could not find gem 'rspec-core'."
|
43
43
|
@logger.example_failed @example1
|
44
44
|
|
45
45
|
@logger.dump_failures
|
@@ -50,7 +50,7 @@ describe ParallelTests::RSpec::FailuresLogger do
|
|
50
50
|
|
51
51
|
it "should invoke rspec for rspec 2" do
|
52
52
|
ParallelTests.stub!(:bundler_enabled?).and_return true
|
53
|
-
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec").and_return "/foo/bar/rspec-2.0.2"
|
53
|
+
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec").and_return "/foo/bar/rspec-core-2.0.2"
|
54
54
|
@logger.example_failed @example1
|
55
55
|
|
56
56
|
@logger.dump_failures
|
@@ -61,7 +61,7 @@ describe ParallelTests::RSpec::Runner do
|
|
61
61
|
it "run bundle exec spec when on bundler rspec 1" do
|
62
62
|
File.stub!(:file?).with('script/spec').and_return false
|
63
63
|
ParallelTests.stub!(:bundler_enabled?).and_return true
|
64
|
-
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec").and_return "
|
64
|
+
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec-core").and_return "Could not find gem 'rspec-core' in bundler."
|
65
65
|
ParallelTests::RSpec::Runner.should_receive(:open).with{|x,y| x =~ %r{bundle exec spec}}.and_return mocked_process
|
66
66
|
call(['xxx'],1,22,{})
|
67
67
|
end
|
@@ -69,7 +69,7 @@ describe ParallelTests::RSpec::Runner do
|
|
69
69
|
it "run bundle exec rspec when on bundler rspec 2" do
|
70
70
|
File.stub!(:file?).with('script/spec').and_return false
|
71
71
|
ParallelTests.stub!(:bundler_enabled?).and_return true
|
72
|
-
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec").and_return "/foo/bar/rspec-2.0.2"
|
72
|
+
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec-core").and_return "/foo/bar/rspec-core-2.0.2"
|
73
73
|
ParallelTests::RSpec::Runner.should_receive(:open).with{|x,y| x =~ %r{bundle exec rspec}}.and_return mocked_process
|
74
74
|
call(['xxx'],1,22,{})
|
75
75
|
end
|
@@ -117,7 +117,7 @@ describe ParallelTests::RSpec::Runner do
|
|
117
117
|
File.should_receive(:file?).with('spec/parallel_spec.opts').and_return true
|
118
118
|
|
119
119
|
ParallelTests.stub!(:bundler_enabled?).and_return true
|
120
|
-
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec").and_return "
|
120
|
+
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec-core").and_return "Could not find gem 'rspec-core'."
|
121
121
|
|
122
122
|
ParallelTests::RSpec::Runner.should_receive(:open).with{|x,y| x =~ %r{spec\s+ -O spec/parallel_spec.opts}}.and_return mocked_process
|
123
123
|
call(['xxx'],1,22,{})
|
@@ -127,7 +127,7 @@ describe ParallelTests::RSpec::Runner do
|
|
127
127
|
File.should_receive(:file?).with('spec/parallel_spec.opts').and_return true
|
128
128
|
|
129
129
|
ParallelTests.stub!(:bundler_enabled?).and_return true
|
130
|
-
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec").and_return "/foo/bar/rspec-2.4.2"
|
130
|
+
ParallelTests::RSpec::Runner.stub!(:run).with("bundle show rspec-core").and_return "/foo/bar/rspec-core-2.4.2"
|
131
131
|
|
132
132
|
ParallelTests::RSpec::Runner.should_receive(:open).with{|x,y| x =~ %r{rspec\s+ --color --tty -O spec/parallel_spec.opts}}.and_return mocked_process
|
133
133
|
call(['xxx'],1,22,{})
|
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.10.
|
4
|
+
version: 0.10.1
|
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: 2013-
|
12
|
+
date: 2013-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
segments:
|
95
95
|
- 0
|
96
|
-
hash:
|
96
|
+
hash: -2870354832574302332
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
98
|
none: false
|
99
99
|
requirements:
|
@@ -102,10 +102,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
segments:
|
104
104
|
- 0
|
105
|
-
hash:
|
105
|
+
hash: -2870354832574302332
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 1.8.
|
108
|
+
rubygems_version: 1.8.25
|
109
109
|
signing_key:
|
110
110
|
specification_version: 3
|
111
111
|
summary: Run Test::Unit / RSpec / Cucumber in parallel
|