parallel_tests 0.4.21 → 0.5.0

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 CHANGED
@@ -3,7 +3,7 @@ source :rubygems
3
3
  gem 'parallel'
4
4
 
5
5
  group :dev do
6
+ gem 'rspec', '>=2.4'
6
7
  gem 'rake'
7
- gem 'rspec', '~>2'
8
8
  gem 'jeweler'
9
- end
9
+ end
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.4.0)
8
- gemcutter (>= 0.1.0)
6
+ jeweler (1.6.3)
7
+ bundler (~> 1.0)
9
8
  git (>= 1.2.5)
10
- rubyforge (>= 2.0.0)
11
- json_pure (1.4.6)
9
+ rake
12
10
  parallel (0.5.1)
13
11
  rake (0.8.7)
14
- rspec (2.0.1)
15
- rspec-core (~> 2.0.1)
16
- rspec-expectations (~> 2.0.1)
17
- rspec-mocks (~> 2.0.1)
18
- rspec-core (2.0.1)
19
- rspec-expectations (2.0.1)
20
- diff-lcs (>= 1.1.2)
21
- rspec-mocks (2.0.1)
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 (~> 2)
28
+ rspec (>= 2.4)
data/Rakefile CHANGED
@@ -12,7 +12,6 @@ begin
12
12
  gem.email = "grosser.michael@gmail.com"
13
13
  gem.homepage = "http://github.com/grosser/#{gem.name}"
14
14
  gem.authors = "Michael Grosser"
15
- gem.add_dependency "parallel"
16
15
  end
17
16
 
18
17
  Jeweler::GemcutterTasks.new
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
- As gem
7
+ If you use RSpec: ensure you got >= 2.4
9
8
 
10
- gem install parallel_tests
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.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.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.4.21
1
+ 0.5.0
@@ -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
- if rspec_version == 2
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
@@ -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 the gemspec command
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.4.21"
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-06-12}
12
+ s.date = %q{2011-07-03}
13
13
  s.email = %q{grosser.michael@gmail.com}
14
- s.executables = ["parallel_cucumber", "parallel_spec", "parallel_test"]
14
+ s.executables = ["parallel_cucumber", "parallel_test", "parallel_spec"]
15
15
  s.files = [
16
- ".gitignore",
17
- "Gemfile",
18
- "Gemfile.lock",
19
- "Rakefile",
20
- "Readme.md",
21
- "VERSION",
22
- "bin/parallel_cucumber",
23
- "bin/parallel_spec",
24
- "bin/parallel_test",
25
- "lib/parallel_cucumber.rb",
26
- "lib/parallel_cucumber/runtime_logger.rb",
27
- "lib/parallel_specs.rb",
28
- "lib/parallel_specs/spec_failures_logger.rb",
29
- "lib/parallel_specs/spec_logger_base.rb",
30
- "lib/parallel_specs/spec_runtime_logger.rb",
31
- "lib/parallel_specs/spec_summary_logger.rb",
32
- "lib/parallel_tests.rb",
33
- "lib/parallel_tests/grouper.rb",
34
- "lib/parallel_tests/railtie.rb",
35
- "lib/parallel_tests/tasks.rb",
36
- "lib/tasks/parallel_tests.rake",
37
- "parallel_tests.gemspec",
38
- "spec/integration_spec.rb",
39
- "spec/parallel_cucumber_spec.rb",
40
- "spec/parallel_specs_spec.rb",
41
- "spec/parallel_tests_spec.rb",
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
@@ -108,14 +108,13 @@ describe ParallelSpecs do
108
108
  ParallelSpecs.run_tests(['xxx'],1,'')
109
109
  end
110
110
 
111
- it "uses inline options with rspec2" do
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.0.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+ --tty --foo --bar}}.and_return mocked_process
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: 37
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 21
10
- version: 0.4.21
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-06-12 00:00:00 +02:00
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
- - --charset=UTF-8
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
- - spec/parallel_tests_spec.rb
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