parallel_tests 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/Readme.md +2 -0
- data/lib/parallel_tests/rspec/runner.rb +2 -2
- data/lib/parallel_tests/tasks.rb +1 -1
- data/lib/parallel_tests/test/runner.rb +1 -1
- data/lib/parallel_tests/version.rb +1 -1
- metadata +6 -6
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
@@ -155,6 +155,7 @@ TIPS
|
|
155
155
|
- [RSpec] remove --loadby from you spec/*.opts
|
156
156
|
- [RSpec] Instantly see failures (instead of just a red F) with [rspec-instafail](https://github.com/grosser/rspec-instafail)
|
157
157
|
- [Bundler] if you have a `Gemfile` then `bundle exec` will be used to run tests
|
158
|
+
- [Cucumber] add a `parallel: foo` profile to your `config/cucumber.yml` and it will be used to run parallel tests
|
158
159
|
- [Capybara setup](https://github.com/grosser/parallel_tests/wiki)
|
159
160
|
- [Sphinx setup](https://github.com/grosser/parallel_tests/wiki)
|
160
161
|
- [Capistrano setup](https://github.com/grosser/parallel_tests/wiki/Remotely-with-capistrano) let your tests run on a big box instead of your laptop
|
@@ -204,6 +205,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
|
|
204
205
|
- [Potapov Sergey](https://github.com/greyblake)
|
205
206
|
- [Łukasz Tackowiak](https://github.com/lukasztackowiak)
|
206
207
|
- [Pedro Carriço](https://github.com/pedrocarrico)
|
208
|
+
- [Pablo Manrubia Díez](https://github.com/pmanrubia)
|
207
209
|
|
208
210
|
[Michael Grosser](http://grosser.it)<br/>
|
209
211
|
michael@grosser.it<br/>
|
@@ -6,7 +6,7 @@ module ParallelTests
|
|
6
6
|
def self.run_tests(test_files, process_number, options)
|
7
7
|
exe = executable # expensive, so we cache
|
8
8
|
version = (exe =~ /\brspec\b/ ? 2 : 1)
|
9
|
-
cmd = "#{rspec_1_color if version == 1}#{exe} #{options[:test_options]} #{rspec_2_color if version == 2}#{spec_opts
|
9
|
+
cmd = "#{rspec_1_color if version == 1}#{exe} #{options[:test_options]} #{rspec_2_color if version == 2}#{spec_opts} #{test_files*' '}"
|
10
10
|
execute_command(cmd, process_number, options)
|
11
11
|
end
|
12
12
|
|
@@ -49,7 +49,7 @@ module ParallelTests
|
|
49
49
|
'--color --tty ' if $stdout.tty?
|
50
50
|
end
|
51
51
|
|
52
|
-
def self.spec_opts
|
52
|
+
def self.spec_opts
|
53
53
|
options_file = ['.rspec_parallel', 'spec/parallel_spec.opts', 'spec/spec.opts'].detect{|f| File.file?(f) }
|
54
54
|
return unless options_file
|
55
55
|
"-O #{options_file}"
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -41,7 +41,7 @@ namespace :parallel do
|
|
41
41
|
run_in_parallel('rake db:test:load', args)
|
42
42
|
end
|
43
43
|
|
44
|
-
desc "load the seed data from db/seeds.rb via db:seed --> parallel
|
44
|
+
desc "load the seed data from db/seeds.rb via db:seed --> parallel:seed[num_cpus]"
|
45
45
|
task :seed, :count do |t,args|
|
46
46
|
run_in_parallel('rake db:seed RAILS_ENV=test', args)
|
47
47
|
end
|
@@ -112,7 +112,7 @@ module ParallelTests
|
|
112
112
|
next unless test and time
|
113
113
|
times[File.expand_path(test)] = time.to_f
|
114
114
|
end
|
115
|
-
tests.sort.map{|test| [test, times[test]] }
|
115
|
+
tests.sort.map{|test| [test, times[File.expand_path(test)]] }
|
116
116
|
else # use file sizes
|
117
117
|
tests.sort.map{|test| [test, File.stat(test).size] }
|
118
118
|
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.7.
|
4
|
+
version: 0.7.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|
16
|
-
requirement: &
|
16
|
+
requirement: &14848560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *14848560
|
25
25
|
description:
|
26
26
|
email: michael@grosser.it
|
27
27
|
executables:
|
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
segments:
|
83
83
|
- 0
|
84
|
-
hash:
|
84
|
+
hash: -3734354896089749811
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash:
|
93
|
+
hash: -3734354896089749811
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
96
|
rubygems_version: 1.8.15
|