parallel_tests 4.10.1 → 5.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a4f5446b6d6db5c736415039a356984675cf0abf750f20bbe3a91f0b3735009
4
- data.tar.gz: 50bd6ad7de1fb31d2acdeb9e0ab1b90615318024754c868a6a7d71d53cd09d62
3
+ metadata.gz: d6c3298881c1895193a9ecea54a6d41578ea239a2f247f88bfd796cb59d6240b
4
+ data.tar.gz: d4d5fc5bc795baa568a8ba3874f4d8a0e695cf72a35f10965215dbf961ac1f2f
5
5
  SHA512:
6
- metadata.gz: 2a02874f4956c27c4d83465b785ce0bd44c6b0c8bc27eae97e8fc1076c791bf1a4be3d78c1898b9477f0bc827dd9101dbd31e686fa597a6c5f93cc04cf97db4e
7
- data.tar.gz: f116b1a783843f93a04f835930968d2db17ae0279f8b7d3a4406c8412e36cc32dbedfd655b0756eb4477e9536c59f60f4d7ff359e090267eff35308b0e979867
6
+ metadata.gz: 1bdfe399bd6e3e3380853522202245562ccb6e1939ea42f25276475426ac61de386a24a1365d60467114badcac87cf5c56883028e55b5d6b39ccb531ffa9d3f7
7
+ data.tar.gz: 93e6ddc6c20e98a86de94b5e6bd80dd0b1433a69cae9cfbcb8bf93f19aaa43e343b014c648435ca7a05f6ec81eb17c31ae332272fa45660445b068c3d9a2df78
data/Readme.md CHANGED
@@ -335,7 +335,7 @@ TIPS
335
335
  e.g. `config.cache_store = ..., namespace: "test_#{ENV['TEST_ENV_NUMBER']}"`
336
336
  - Debug errors that only happen with multiple files using `--verbose` and [cleanser](https://github.com/grosser/cleanser)
337
337
  - `export PARALLEL_TEST_PROCESSORS=13` to override default processor count
338
- - `export PARALLEL_TEST_MULTIPLE=.5` to override default processor multiplier
338
+ - `export PARALLEL_TEST_MULTIPLY_PROCESSES=.5` to override default processor multiplier
339
339
  - Shell alias: `alias prspec='parallel_rspec -m 2 --'`
340
340
  - [Spring] Add the [spring-commands-parallel-tests](https://github.com/DocSpring/spring-commands-parallel-tests) gem to your `Gemfile` to get `parallel_tests` working with Spring.
341
341
  - `--first-is-1` will make the first environment be `1`, so you can test while running your full suite.<br/>
@@ -349,7 +349,7 @@ module ParallelTests
349
349
  raise "--group-by #{allowed.join(" or ")} is required for --only-group"
350
350
  end
351
351
 
352
- if options[:specify_groups] && (options.keys & [:single_process, :isolate, :isolate_count]).any?
352
+ if options[:specify_groups] && options.keys.intersect?([:single_process, :isolate, :isolate_count])
353
353
  raise "Can't pass --specify-groups with any of these keys: --single, --isolate, or --isolate-n"
354
354
  end
355
355
 
@@ -20,7 +20,7 @@ module ParallelTests
20
20
 
21
21
  # Add our own handler
22
22
  config.on_event :test_run_finished do
23
- return if @failures.empty?
23
+ next if @failures.empty?
24
24
 
25
25
  lock_output do
26
26
  @failures.each do |file, lines|
@@ -4,7 +4,6 @@ require "parallel_tests/test/runner"
4
4
  module ParallelTests
5
5
  module RSpec
6
6
  class Runner < ParallelTests::Test::Runner
7
- DEV_NULL = (WINDOWS ? "NUL" : "/dev/null")
8
7
  class << self
9
8
  def run_tests(test_files, process_number, num_processes, options)
10
9
  cmd = [*executable, *options[:test_options], *color, *spec_opts, *test_files]
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ParallelTests
3
- VERSION = '4.10.1'
3
+ VERSION = '5.1.0'
4
4
  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: 4.10.1
4
+ version: 5.1.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: 2025-03-01 00:00:00.000000000 Z
11
+ date: 2025-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -69,9 +69,9 @@ licenses:
69
69
  - MIT
70
70
  metadata:
71
71
  bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
72
- changelog_uri: https://github.com/grosser/parallel_tests/blob/v4.10.1/CHANGELOG.md
73
- documentation_uri: https://github.com/grosser/parallel_tests/blob/v4.10.1/Readme.md
74
- source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.10.1
72
+ changelog_uri: https://github.com/grosser/parallel_tests/blob/v5.1.0/CHANGELOG.md
73
+ documentation_uri: https://github.com/grosser/parallel_tests/blob/v5.1.0/Readme.md
74
+ source_code_uri: https://github.com/grosser/parallel_tests/tree/v5.1.0
75
75
  wiki_uri: https://github.com/grosser/parallel_tests/wiki
76
76
  rubygems_mfa_required: 'true'
77
77
  post_install_message:
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- version: 3.0.0
85
+ version: 3.1.0
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="