parallel_tests 1.3.6 → 1.3.7
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.
- checksums.yaml +4 -4
- data/lib/parallel_tests/test/runner.rb +6 -1
- data/lib/parallel_tests/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1646c6d92a16b6c2f141d2cfd20af1dcdf491141
|
4
|
+
data.tar.gz: 2265ae4f1843166e30f11b7b4855b6dea98a58bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d303d05c5dd6a5ad7985b18aca984c07cb501f4c07b5b0ca75fd944cbf8cd20ca89535a90d4ef1b0e6259fadcb206ea0325a8dcec5b830cf71569f6ae218d419
|
7
|
+
data.tar.gz: 516172942dd242cc622c4ac013fe7a74091c05c588b1d20b81282aadfe65153008dcf59e367d465d711ea049efb84978194c7f36a4e51ca473e9f104980e797f
|
@@ -39,6 +39,11 @@ module ParallelTests
|
|
39
39
|
|
40
40
|
# finds all tests and partitions them into groups
|
41
41
|
def tests_in_groups(tests, num_groups, options={})
|
42
|
+
tests = tests_with_size(tests, options)
|
43
|
+
Grouper.in_even_groups_by_size(tests, num_groups, options)
|
44
|
+
end
|
45
|
+
|
46
|
+
def tests_with_size(tests, options)
|
42
47
|
tests = find_tests(tests, options)
|
43
48
|
|
44
49
|
case options[:group_by]
|
@@ -61,7 +66,7 @@ module ParallelTests
|
|
61
66
|
raise ArgumentError, "Unsupported option #{options[:group_by]}"
|
62
67
|
end
|
63
68
|
|
64
|
-
|
69
|
+
tests
|
65
70
|
end
|
66
71
|
|
67
72
|
def execute_command(cmd, process_number, num_processes, options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|