parallel_tests 3.11.1 → 3.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +1 -0
- data/lib/parallel_tests/cli.rb +3 -3
- data/lib/parallel_tests/cucumber/scenario_line_logger.rb +1 -1
- data/lib/parallel_tests/cucumber/scenarios.rb +3 -1
- data/lib/parallel_tests/gherkin/runner.rb +1 -1
- data/lib/parallel_tests/grouper.rb +1 -1
- data/lib/parallel_tests/test/runner.rb +3 -3
- data/lib/parallel_tests/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63c2880760c8b795a2a94c066a5ae23f78c505f53da40ce5de8c1df4af9b1e7b
|
4
|
+
data.tar.gz: 17de345e57e4c7e4fe50853e7abb70729ce6ed0e462afadb4888f04e43968f1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c137d503fc2ec276aada0a1c1d8308220d3cb639a206fea97d7bad30d34bb911ad914cf4ac87bd8244442cf0ef5f473355f2a440d6bcdf885751af3ae3ec681a
|
7
|
+
data.tar.gz: 10e46d3162dad7f87e341fb1cfbcd257857e7dedda21e3805851811c7b81c9e0e952ad6863d307381cf8b8fd8e3f6960148e2dd57ed7091a0d4717dc81a9dd79
|
data/Readme.md
CHANGED
@@ -403,6 +403,7 @@ inspired by [pivotal labs](https://blog.pivotal.io/labs/labs/parallelize-your-rs
|
|
403
403
|
- [Joshua Pinter](https://github.com/joshuapinter)
|
404
404
|
- [Zach Dennis](https://github.com/zdennis)
|
405
405
|
- [Jon Dufresne](https://github.com/jdufresne)
|
406
|
+
- [Eric Kessler](https://github.com/enkessler)
|
406
407
|
|
407
408
|
[Michael Grosser](http://grosser.it)<br/>
|
408
409
|
michael@grosser.it<br/>
|
data/lib/parallel_tests/cli.rb
CHANGED
@@ -316,12 +316,12 @@ module ParallelTests
|
|
316
316
|
def extract_file_paths(argv)
|
317
317
|
dash_index = argv.rindex("--")
|
318
318
|
file_args_at = (dash_index || -1) + 1
|
319
|
-
[argv[file_args_at
|
319
|
+
[argv[file_args_at..], argv[0...(dash_index || 0)]]
|
320
320
|
end
|
321
321
|
|
322
322
|
def extract_test_options(argv)
|
323
323
|
dash_index = argv.index("--") || -1
|
324
|
-
argv[dash_index + 1
|
324
|
+
argv[dash_index + 1..]
|
325
325
|
end
|
326
326
|
|
327
327
|
def append_test_options(options, argv)
|
@@ -391,7 +391,7 @@ module ParallelTests
|
|
391
391
|
def simulate_output_for_ci(simulate)
|
392
392
|
if simulate
|
393
393
|
progress_indicator = Thread.new do
|
394
|
-
interval = Float(ENV
|
394
|
+
interval = Float(ENV['PARALLEL_TEST_HEARTBEAT_INTERVAL'] || 60)
|
395
395
|
loop do
|
396
396
|
sleep interval
|
397
397
|
print '.'
|
@@ -27,7 +27,7 @@ module ParallelTests
|
|
27
27
|
example_tags = example.tags.map(&:name)
|
28
28
|
example_tags = scenario_tags + example_tags
|
29
29
|
next unless matches_tags?(example_tags)
|
30
|
-
example.rows[1
|
30
|
+
example.rows[1..].each do |row|
|
31
31
|
test_line = row.source_line
|
32
32
|
next if line_numbers.any? && !line_numbers.include?(test_line)
|
33
33
|
|
@@ -52,7 +52,9 @@ module ParallelTests
|
|
52
52
|
feature_tags = feature.tags.map(&:name)
|
53
53
|
|
54
54
|
# We loop on each children of the feature
|
55
|
-
feature.tests
|
55
|
+
test_models = feature.tests
|
56
|
+
test_models += feature.rules.flat_map(&:tests) if feature.respond_to?(:rules) # cuke_modeler >= 3.2 supports rules
|
57
|
+
test_models.each do |test|
|
56
58
|
# It's a scenario, we add it to the scenario_line_logger
|
57
59
|
scenario_line_logger.visit_feature_element(document.path, test, feature_tags, line_numbers: test_lines)
|
58
60
|
end
|
@@ -38,7 +38,7 @@ module ParallelTests
|
|
38
38
|
# add all files that should run in a multiple isolated processes to their own groups
|
39
39
|
group_features_by_size(items_to_group(single_items), groups[0..(isolate_count - 1)])
|
40
40
|
# group the non-isolated by size
|
41
|
-
group_features_by_size(items_to_group(items), groups[isolate_count
|
41
|
+
group_features_by_size(items_to_group(items), groups[isolate_count..])
|
42
42
|
else
|
43
43
|
# add all files that should run in a single non-isolated process to first group
|
44
44
|
single_items.each { |item, size| add_to_group(groups.first, item, size) }
|
@@ -73,7 +73,7 @@ module ParallelTests
|
|
73
73
|
[]
|
74
74
|
end
|
75
75
|
if runtimes.size * 1.5 > tests.size
|
76
|
-
puts "Using recorded test runtime"
|
76
|
+
puts "Using recorded test runtime" unless options[:quiet]
|
77
77
|
sort_by_runtime(tests, runtimes)
|
78
78
|
else
|
79
79
|
sort_by_filesize(tests)
|
@@ -153,8 +153,8 @@ module ParallelTests
|
|
153
153
|
protected
|
154
154
|
|
155
155
|
def executable
|
156
|
-
if ENV
|
157
|
-
[
|
156
|
+
if (executable = ENV['PARALLEL_TESTS_EXECUTABLE'])
|
157
|
+
[executable]
|
158
158
|
else
|
159
159
|
determine_executable
|
160
160
|
end
|
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.
|
4
|
+
version: 3.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -68,8 +68,8 @@ 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.
|
72
|
-
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.
|
71
|
+
documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.13.0/Readme.md
|
72
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.13.0
|
73
73
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
74
74
|
post_install_message:
|
75
75
|
rdoc_options: []
|
@@ -79,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
82
|
+
version: 2.6.0
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - ">="
|