parallel_tests 0.6.16 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.md +2 -2
- data/VERSION +1 -1
- data/lib/parallel_specs.rb +1 -1
- data/parallel_tests.gemspec +4 -4
- data/spec/parallel_specs_spec.rb +8 -0
- metadata +33 -51
data/Readme.md
CHANGED
@@ -47,7 +47,7 @@ ParallelTests uses 1 database per test-process, 2 processes will use `*_test` an
|
|
47
47
|
|
48
48
|
### 1: Add to `config/database.yml`
|
49
49
|
test:
|
50
|
-
database:
|
50
|
+
database: yourproject_test<%= ENV['TEST_ENV_NUMBER'] %>
|
51
51
|
|
52
52
|
### 2: Create additional database(s)
|
53
53
|
rake parallel:create
|
@@ -149,7 +149,7 @@ Setup for non-rails
|
|
149
149
|
|
150
150
|
[optional] Only run selected files & folders:
|
151
151
|
|
152
|
-
parallel_test test/bar test/baz/
|
152
|
+
parallel_test test/bar test/baz/foo_text.rb
|
153
153
|
|
154
154
|
Options are:
|
155
155
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.17
|
data/lib/parallel_specs.rb
CHANGED
@@ -41,7 +41,7 @@ class ParallelSpecs < ParallelTests
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.spec_opts(rspec_version)
|
44
|
-
options_file = ['spec/parallel_spec.opts', 'spec/spec.opts'].detect{|f| File.file?(f) }
|
44
|
+
options_file = ['.rspec_parallel', 'spec/parallel_spec.opts', 'spec/spec.opts'].detect{|f| File.file?(f) }
|
45
45
|
return unless options_file
|
46
46
|
"-O #{options_file}"
|
47
47
|
end
|
data/parallel_tests.gemspec
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "parallel_tests"
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.17"
|
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"]
|
12
|
-
s.date = "2012-01-
|
12
|
+
s.date = "2012-01-28"
|
13
13
|
s.email = "grosser.michael@gmail.com"
|
14
|
-
s.executables = ["parallel_cucumber", "
|
14
|
+
s.executables = ["parallel_cucumber", "parallel_spec", "parallel_test"]
|
15
15
|
s.files = [
|
16
16
|
"Gemfile",
|
17
17
|
"Gemfile.lock",
|
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
]
|
48
48
|
s.homepage = "http://github.com/grosser/parallel_tests"
|
49
49
|
s.require_paths = ["lib"]
|
50
|
-
s.rubygems_version = "1.8.
|
50
|
+
s.rubygems_version = "1.8.10"
|
51
51
|
s.summary = "Run tests / specs / features in parallel"
|
52
52
|
|
53
53
|
if s.respond_to? :specification_version then
|
data/spec/parallel_specs_spec.rb
CHANGED
@@ -11,6 +11,7 @@ describe ParallelSpecs do
|
|
11
11
|
File.stub!(:file?).with('script/spec').and_return false
|
12
12
|
File.stub!(:file?).with('spec/spec.opts').and_return false
|
13
13
|
File.stub!(:file?).with('spec/parallel_spec.opts').and_return false
|
14
|
+
File.stub!(:file?).with('.rspec_parallel').and_return false
|
14
15
|
ParallelSpecs.stub!(:bundler_enabled?).and_return false
|
15
16
|
end
|
16
17
|
|
@@ -98,6 +99,13 @@ describe ParallelSpecs do
|
|
98
99
|
ParallelSpecs.run_tests(['xxx'],1,{})
|
99
100
|
end
|
100
101
|
|
102
|
+
it "uses -O .rspec_parallel when found (with script/spec)" do
|
103
|
+
File.stub!(:file?).with('script/spec').and_return true
|
104
|
+
File.should_receive(:file?).with('.rspec_parallel').and_return true
|
105
|
+
ParallelSpecs.should_receive(:open).with{|x,y| x =~ %r{script/spec\s+ -O .rspec_parallel}}.and_return mocked_process
|
106
|
+
ParallelSpecs.run_tests(['xxx'],1,{})
|
107
|
+
end
|
108
|
+
|
101
109
|
it "uses -O spec/parallel_spec.opts with rspec1" do
|
102
110
|
File.should_receive(:file?).with('spec/parallel_spec.opts').and_return true
|
103
111
|
|
metadata
CHANGED
@@ -1,47 +1,36 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.17
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 6
|
9
|
-
- 16
|
10
|
-
version: 0.6.16
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Michael Grosser
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
22
|
-
type: :runtime
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
12
|
+
date: 2012-01-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
32
15
|
name: parallel
|
33
|
-
|
16
|
+
requirement: &70927450 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70927450
|
34
25
|
description:
|
35
26
|
email: grosser.michael@gmail.com
|
36
|
-
executables:
|
27
|
+
executables:
|
37
28
|
- parallel_cucumber
|
38
|
-
- parallel_test
|
39
29
|
- parallel_spec
|
30
|
+
- parallel_test
|
40
31
|
extensions: []
|
41
|
-
|
42
32
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
files:
|
33
|
+
files:
|
45
34
|
- Gemfile
|
46
35
|
- Gemfile.lock
|
47
36
|
- Rakefile
|
@@ -75,36 +64,29 @@ files:
|
|
75
64
|
- spec/spec_helper.rb
|
76
65
|
homepage: http://github.com/grosser/parallel_tests
|
77
66
|
licenses: []
|
78
|
-
|
79
67
|
post_install_message:
|
80
68
|
rdoc_options: []
|
81
|
-
|
82
|
-
require_paths:
|
69
|
+
require_paths:
|
83
70
|
- lib
|
84
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
72
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
segments:
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
segments:
|
91
78
|
- 0
|
92
|
-
|
93
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
hash: -681564493
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
81
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
segments:
|
100
|
-
- 0
|
101
|
-
version: "0"
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
102
86
|
requirements: []
|
103
|
-
|
104
87
|
rubyforge_project:
|
105
|
-
rubygems_version: 1.8.
|
88
|
+
rubygems_version: 1.8.10
|
106
89
|
signing_key:
|
107
90
|
specification_version: 3
|
108
91
|
summary: Run tests / specs / features in parallel
|
109
92
|
test_files: []
|
110
|
-
|