parallel_tests 0.6.14 → 0.6.15
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.md +3 -0
- data/VERSION +1 -1
- data/lib/parallel_tests/grouper.rb +2 -2
- data/parallel_tests.gemspec +2 -2
- data/spec/parallel_tests_spec.rb +1 -1
- metadata +5 -5
data/Readme.md
CHANGED
@@ -191,6 +191,7 @@ TIPS
|
|
191
191
|
- [Capistrano setup](https://github.com/grosser/parallel_tests/wiki/Remotely-with-capistrano) let your tests run on a big box instead of your laptop
|
192
192
|
- [Test::Unit runtime logger](https://gist.github.com/1333414) some basic plumbing done (needs some love and a pull-request)
|
193
193
|
- [SQL schema format] use :ruby schema format to get faster parallel:prepare`
|
194
|
+
- [ActiveRecord] if you do not have `db:abort_if_pending_migrations` add this to your Rakefile: `task('db:abort_if_pending_migrations'){}`
|
194
195
|
- `export PARALLEL_TEST_PROCESSORS=X` in your environment and parallel_tests will use this number of processors by default
|
195
196
|
- with zsh this would be `rake "parallel:prepare[3]"`
|
196
197
|
|
@@ -226,6 +227,8 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
|
|
226
227
|
- [asmega](http://www.ph-lee.com)
|
227
228
|
- [Doug Barth](https://github.com/dougbarth)
|
228
229
|
- [Geoffrey Hichborn](https://github.com/phene)
|
230
|
+
- [Trae Robrock](https://github.com/trobrock)
|
231
|
+
- [Lawrence Wang](https://github.com/levity)
|
229
232
|
|
230
233
|
[Michael Grosser](http://grosser.it)<br/>
|
231
234
|
michael@grosser.it<br/>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.15
|
@@ -23,7 +23,7 @@ class ParallelTests
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# add all other files
|
26
|
-
|
26
|
+
largest_first(items_with_sizes).each do |item, size|
|
27
27
|
smallest = smallest_group(groups)
|
28
28
|
add_to_group(smallest, item, size)
|
29
29
|
end
|
@@ -31,7 +31,7 @@ class ParallelTests
|
|
31
31
|
groups.map!{|g| g[:items].sort }
|
32
32
|
end
|
33
33
|
|
34
|
-
def self.
|
34
|
+
def self.largest_first(files)
|
35
35
|
files.sort_by{|item, size| size }.reverse
|
36
36
|
end
|
37
37
|
|
data/parallel_tests.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
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.15"
|
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 = "
|
12
|
+
s.date = "2012-01-12"
|
13
13
|
s.email = "grosser.michael@gmail.com"
|
14
14
|
s.executables = ["parallel_cucumber", "parallel_spec", "parallel_test"]
|
15
15
|
s.files = [
|
data/spec/parallel_tests_spec.rb
CHANGED
@@ -68,7 +68,7 @@ describe ParallelTests do
|
|
68
68
|
|
69
69
|
it "does sort when not passed do_sort option" do
|
70
70
|
ParallelTests.stub!(:tests_with_runtime).and_return([])
|
71
|
-
ParallelTests::Grouper.should_receive(:
|
71
|
+
ParallelTests::Grouper.should_receive(:largest_first).and_return([])
|
72
72
|
ParallelTests.tests_in_groups [], 1
|
73
73
|
end
|
74
74
|
|
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.6.
|
4
|
+
version: 0.6.15
|
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:
|
12
|
+
date: 2012-01-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|
16
|
-
requirement: &
|
16
|
+
requirement: &69308050 !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: *69308050
|
25
25
|
description:
|
26
26
|
email: grosser.michael@gmail.com
|
27
27
|
executables:
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash: -
|
77
|
+
hash: -947870483
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
none: false
|
80
80
|
requirements:
|