parallel_tests 3.11.0 → 3.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parallel_tests/cli.rb +7 -12
- data/lib/parallel_tests/test/runner.rb +5 -1
- data/lib/parallel_tests/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e052a26b97662bef05987559eda2c84f64b950a1117a4fcfd2cc7708274a497b
|
4
|
+
data.tar.gz: 95c02ca904bc927db9b7c747c48de76d7d73eb4adb328a163f6d9e97669c7f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae8f340c1213e5fd51bf761d7e3f98ae249607808f7c8b375311a719f1c8f14c86c8502a357ecefcfbd79207f791fb336e633da4f369eb2da770320dd9070380
|
7
|
+
data.tar.gz: ef54bdfc2a8c6d1e3aa41338b130a9a36f33b1aa615ff6de471bea30217f0282229bfe837ce579c7ea96b6ba7c160a5ddaf1023253482dfab8169246771859a3
|
data/lib/parallel_tests/cli.rb
CHANGED
@@ -61,20 +61,15 @@ module ParallelTests
|
|
61
61
|
groups = @runner.tests_in_groups(options[:files], num_processes, options)
|
62
62
|
groups.reject!(&:empty?)
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
execute_in_parallel(groups_to_run, groups_to_run.size, options) do |group|
|
68
|
-
run_tests(group, groups_to_run.index(group), 1, options)
|
69
|
-
end
|
70
|
-
else
|
71
|
-
report_number_of_tests(groups) unless options[:quiet]
|
72
|
-
|
73
|
-
execute_in_parallel(groups, groups.size, options) do |group|
|
74
|
-
run_tests(group, groups.index(group), num_processes, options)
|
75
|
-
end
|
64
|
+
if options[:only_group]
|
65
|
+
groups = options[:only_group].map { |i| groups[i - 1] }.compact
|
66
|
+
num_processes = 1
|
76
67
|
end
|
77
68
|
|
69
|
+
report_number_of_tests(groups) unless options[:quiet]
|
70
|
+
test_results = execute_in_parallel(groups, groups.size, options) do |group|
|
71
|
+
run_tests(group, groups.index(group), num_processes, options)
|
72
|
+
end
|
78
73
|
report_results(test_results, options) unless options[:quiet]
|
79
74
|
end
|
80
75
|
|
@@ -86,13 +86,17 @@ module ParallelTests
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def execute_command(cmd, process_number, num_processes, options)
|
89
|
+
number = test_env_number(process_number, options).to_s
|
89
90
|
env = (options[:env] || {}).merge(
|
90
|
-
"TEST_ENV_NUMBER" =>
|
91
|
+
"TEST_ENV_NUMBER" => number,
|
91
92
|
"PARALLEL_TEST_GROUPS" => num_processes.to_s,
|
92
93
|
"PARALLEL_PID_FILE" => ParallelTests.pid_file_path
|
93
94
|
)
|
94
95
|
cmd = ["nice", *cmd] if options[:nice]
|
95
96
|
|
97
|
+
# being able to run with for example `-output foo-$TEST_ENV_NUMBER` worked originally and is convenient
|
98
|
+
cmd.map! { |c| c.gsub("$TEST_ENV_NUMBER", number).gsub("${TEST_ENV_NUMBER}", number) }
|
99
|
+
|
96
100
|
puts Shellwords.shelljoin(cmd) if report_process_command?(options) && !options[:serialize_stdout]
|
97
101
|
|
98
102
|
execute_command_and_capture_output(env, cmd, 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: 3.11.
|
4
|
+
version: 3.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email: michael@grosser.it
|
29
29
|
executables:
|
30
30
|
- parallel_spinach
|
@@ -68,10 +68,10 @@ licenses:
|
|
68
68
|
- MIT
|
69
69
|
metadata:
|
70
70
|
bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
|
71
|
-
documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.11.
|
72
|
-
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.11.
|
71
|
+
documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.11.1/Readme.md
|
72
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.11.1
|
73
73
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
74
|
-
post_install_message:
|
74
|
+
post_install_message:
|
75
75
|
rdoc_options: []
|
76
76
|
require_paths:
|
77
77
|
- lib
|
@@ -86,8 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
90
|
-
signing_key:
|
89
|
+
rubygems_version: 3.3.3
|
90
|
+
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Run Test::Unit / RSpec / Cucumber / Spinach in parallel
|
93
93
|
test_files: []
|