parallel_tests 0.4.21 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/Gemfile.lock +12 -18
- data/Rakefile +0 -1
- data/Readme.md +9 -6
- data/VERSION +1 -1
- data/lib/parallel_specs.rb +2 -7
- data/parallel_tests.gemspec +30 -39
- data/spec/parallel_specs_spec.rb +3 -4
- metadata +10 -15
- data/.gitignore +0 -1
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,27 +2,21 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
diff-lcs (1.1.2)
|
5
|
-
gemcutter (0.6.1)
|
6
5
|
git (1.2.5)
|
7
|
-
jeweler (1.
|
8
|
-
|
6
|
+
jeweler (1.6.3)
|
7
|
+
bundler (~> 1.0)
|
9
8
|
git (>= 1.2.5)
|
10
|
-
|
11
|
-
json_pure (1.4.6)
|
9
|
+
rake
|
12
10
|
parallel (0.5.1)
|
13
11
|
rake (0.8.7)
|
14
|
-
rspec (2.0
|
15
|
-
rspec-core (~> 2.0
|
16
|
-
rspec-expectations (~> 2.0
|
17
|
-
rspec-mocks (~> 2.0
|
18
|
-
rspec-core (2.
|
19
|
-
rspec-expectations (2.0
|
20
|
-
diff-lcs (
|
21
|
-
rspec-mocks (2.0
|
22
|
-
rspec-core (~> 2.0.1)
|
23
|
-
rspec-expectations (~> 2.0.1)
|
24
|
-
rubyforge (2.0.4)
|
25
|
-
json_pure (>= 1.1.7)
|
12
|
+
rspec (2.6.0)
|
13
|
+
rspec-core (~> 2.6.0)
|
14
|
+
rspec-expectations (~> 2.6.0)
|
15
|
+
rspec-mocks (~> 2.6.0)
|
16
|
+
rspec-core (2.6.4)
|
17
|
+
rspec-expectations (2.6.0)
|
18
|
+
diff-lcs (~> 1.1.2)
|
19
|
+
rspec-mocks (2.6.0)
|
26
20
|
|
27
21
|
PLATFORMS
|
28
22
|
ruby
|
@@ -31,4 +25,4 @@ DEPENDENCIES
|
|
31
25
|
jeweler
|
32
26
|
parallel
|
33
27
|
rake
|
34
|
-
rspec (
|
28
|
+
rspec (>= 2.4)
|
data/Rakefile
CHANGED
data/Readme.md
CHANGED
@@ -2,24 +2,23 @@ Speedup Test::Unit + RSpec + Cucumber by running parallel on multiple CPUs (or c
|
|
2
2
|
|
3
3
|
Setup for Rails
|
4
4
|
===============
|
5
|
-
|
6
5
|
## Install
|
7
6
|
### Rails 3
|
8
|
-
|
7
|
+
If you use RSpec: ensure you got >= 2.4
|
9
8
|
|
10
|
-
|
9
|
+
As gem
|
11
10
|
|
12
11
|
# add to Gemfile
|
13
12
|
gem "parallel_tests", :group => :development
|
14
13
|
|
15
14
|
OR as plugin
|
16
15
|
|
17
|
-
gem install parallel
|
18
16
|
rails plugin install git://github.com/grosser/parallel_tests.git
|
19
17
|
|
20
18
|
# add to Gemfile
|
21
19
|
gem "parallel", :group => :development
|
22
20
|
|
21
|
+
|
23
22
|
### Rails 2
|
24
23
|
|
25
24
|
As gem
|
@@ -35,6 +34,10 @@ As gem
|
|
35
34
|
OR as plugin
|
36
35
|
|
37
36
|
gem install parallel
|
37
|
+
|
38
|
+
# add to config/environments/development.rb
|
39
|
+
config.gem "parallel"
|
40
|
+
|
38
41
|
./script/plugin install git://github.com/grosser/parallel_tests.git
|
39
42
|
|
40
43
|
## Setup
|
@@ -90,7 +93,7 @@ Add to your `spec/parallel_spec.opts` (or `spec/spec.opts`) :
|
|
90
93
|
RSpec 1.x:
|
91
94
|
--format progress
|
92
95
|
--format ParallelSpecs::SpecRuntimeLogger:tmp/parallel_profile.log
|
93
|
-
RSpec >= 2.
|
96
|
+
RSpec >= 2.4:
|
94
97
|
Installed as plugin: -I vendor/plugins/parallel_tests/lib
|
95
98
|
--format progress
|
96
99
|
--format ParallelSpecs::SpecRuntimeLogger --out tmp/parallel_profile.log
|
@@ -122,7 +125,7 @@ Add the following to your `spec/parallel_spec.opts` (or `spec/spec.opts`) :
|
|
122
125
|
|
123
126
|
RSpec 1.x:
|
124
127
|
--format ParallelSpecs::SpecFailuresLogger:tmp/failing_specs.log
|
125
|
-
RSpec >= 2.
|
128
|
+
RSpec >= 2.4:
|
126
129
|
--format ParallelSpecs::SpecFailuresLogger --out tmp/failing_specs.log
|
127
130
|
|
128
131
|
Setup for non-rails
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/lib/parallel_specs.rb
CHANGED
@@ -36,18 +36,13 @@ class ParallelSpecs < ParallelTests
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.rspec_2_color
|
39
|
-
'--tty ' if $stdout.tty?
|
39
|
+
'--color --tty ' if $stdout.tty?
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.spec_opts(rspec_version)
|
43
43
|
options_file = ['spec/parallel_spec.opts', 'spec/spec.opts'].detect{|f| File.file?(f) }
|
44
44
|
return unless options_file
|
45
|
-
|
46
|
-
# does not handle -O, so we inline the options
|
47
|
-
File.read(options_file).tr("\n", ' ')
|
48
|
-
else
|
49
|
-
"-O #{options_file}"
|
50
|
-
end
|
45
|
+
"-O #{options_file}"
|
51
46
|
end
|
52
47
|
|
53
48
|
def self.test_suffix
|
data/parallel_tests.gemspec
CHANGED
@@ -1,58 +1,49 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{parallel_tests}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.0"
|
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 = %q{2011-
|
12
|
+
s.date = %q{2011-07-03}
|
13
13
|
s.email = %q{grosser.michael@gmail.com}
|
14
|
-
s.executables = ["parallel_cucumber", "
|
14
|
+
s.executables = ["parallel_cucumber", "parallel_test", "parallel_spec"]
|
15
15
|
s.files = [
|
16
|
-
"
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
"spec/spec_helper.rb"
|
16
|
+
"Gemfile",
|
17
|
+
"Gemfile.lock",
|
18
|
+
"Rakefile",
|
19
|
+
"Readme.md",
|
20
|
+
"VERSION",
|
21
|
+
"bin/parallel_cucumber",
|
22
|
+
"bin/parallel_spec",
|
23
|
+
"bin/parallel_test",
|
24
|
+
"lib/parallel_cucumber.rb",
|
25
|
+
"lib/parallel_cucumber/runtime_logger.rb",
|
26
|
+
"lib/parallel_specs.rb",
|
27
|
+
"lib/parallel_specs/spec_failures_logger.rb",
|
28
|
+
"lib/parallel_specs/spec_logger_base.rb",
|
29
|
+
"lib/parallel_specs/spec_runtime_logger.rb",
|
30
|
+
"lib/parallel_specs/spec_summary_logger.rb",
|
31
|
+
"lib/parallel_tests.rb",
|
32
|
+
"lib/parallel_tests/grouper.rb",
|
33
|
+
"lib/parallel_tests/railtie.rb",
|
34
|
+
"lib/parallel_tests/tasks.rb",
|
35
|
+
"lib/tasks/parallel_tests.rake",
|
36
|
+
"parallel_tests.gemspec",
|
37
|
+
"spec/integration_spec.rb",
|
38
|
+
"spec/parallel_cucumber_spec.rb",
|
39
|
+
"spec/parallel_specs_spec.rb",
|
40
|
+
"spec/parallel_tests_spec.rb",
|
41
|
+
"spec/spec_helper.rb"
|
43
42
|
]
|
44
43
|
s.homepage = %q{http://github.com/grosser/parallel_tests}
|
45
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
46
44
|
s.require_paths = ["lib"]
|
47
45
|
s.rubygems_version = %q{1.6.2}
|
48
46
|
s.summary = %q{Run tests / specs / features in parallel}
|
49
|
-
s.test_files = [
|
50
|
-
"spec/parallel_tests_spec.rb",
|
51
|
-
"spec/integration_spec.rb",
|
52
|
-
"spec/parallel_specs_spec.rb",
|
53
|
-
"spec/spec_helper.rb",
|
54
|
-
"spec/parallel_cucumber_spec.rb"
|
55
|
-
]
|
56
47
|
|
57
48
|
if s.respond_to? :specification_version then
|
58
49
|
s.specification_version = 3
|
data/spec/parallel_specs_spec.rb
CHANGED
@@ -108,14 +108,13 @@ describe ParallelSpecs do
|
|
108
108
|
ParallelSpecs.run_tests(['xxx'],1,'')
|
109
109
|
end
|
110
110
|
|
111
|
-
it "uses
|
111
|
+
it "uses -O spec/parallel_spec.opts with rspec2" do
|
112
112
|
File.should_receive(:file?).with('spec/parallel_spec.opts').and_return true
|
113
|
-
File.should_receive(:read).with('spec/parallel_spec.opts').and_return "--foo\n--bar\n"
|
114
113
|
|
115
114
|
ParallelSpecs.stub!(:bundler_enabled?).and_return true
|
116
|
-
ParallelSpecs.stub!(:run).with("bundle show rspec").and_return "/foo/bar/rspec-2.
|
115
|
+
ParallelSpecs.stub!(:run).with("bundle show rspec").and_return "/foo/bar/rspec-2.4.2"
|
117
116
|
|
118
|
-
ParallelSpecs.should_receive(:open).with{|x,y| x =~ %r{rspec\s+ --
|
117
|
+
ParallelSpecs.should_receive(:open).with{|x,y| x =~ %r{rspec\s+ --color --tty -O spec/parallel_spec.opts}}.and_return mocked_process
|
119
118
|
ParallelSpecs.run_tests(['xxx'],1,'')
|
120
119
|
end
|
121
120
|
|
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: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-03 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -36,14 +36,13 @@ description:
|
|
36
36
|
email: grosser.michael@gmail.com
|
37
37
|
executables:
|
38
38
|
- parallel_cucumber
|
39
|
-
- parallel_spec
|
40
39
|
- parallel_test
|
40
|
+
- parallel_spec
|
41
41
|
extensions: []
|
42
42
|
|
43
43
|
extra_rdoc_files: []
|
44
44
|
|
45
45
|
files:
|
46
|
-
- .gitignore
|
47
46
|
- Gemfile
|
48
47
|
- Gemfile.lock
|
49
48
|
- Rakefile
|
@@ -75,8 +74,8 @@ homepage: http://github.com/grosser/parallel_tests
|
|
75
74
|
licenses: []
|
76
75
|
|
77
76
|
post_install_message:
|
78
|
-
rdoc_options:
|
79
|
-
|
77
|
+
rdoc_options: []
|
78
|
+
|
80
79
|
require_paths:
|
81
80
|
- lib
|
82
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -104,9 +103,5 @@ rubygems_version: 1.6.2
|
|
104
103
|
signing_key:
|
105
104
|
specification_version: 3
|
106
105
|
summary: Run tests / specs / features in parallel
|
107
|
-
test_files:
|
108
|
-
|
109
|
-
- spec/integration_spec.rb
|
110
|
-
- spec/parallel_specs_spec.rb
|
111
|
-
- spec/spec_helper.rb
|
112
|
-
- spec/parallel_cucumber_spec.rb
|
106
|
+
test_files: []
|
107
|
+
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
*.sh
|