File tree 2 files changed +8
-19
lines changed
2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -335,12 +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 ## 4.20.0 - 2025-02-28
339
-
340
- ### Added
341
-
342
- PARALLEL_TEST_MULTIPLY_PROCESSES
343
- =.5` to override default processor multiplier
338
+ - ` export PARALLEL_TEST_MULTIPLY_PROCESSES=.5 ` to override default processor multiplier
344
339
- Shell alias: ` alias prspec='parallel_rspec -m 2 --' `
345
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.
346
341
- ` --first-is-1 ` will make the first environment be ` 1 ` , so you can test while running your full suite.<br />
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ def call(count)
41
41
allow ( Parallel ) . to receive ( :multiple ) . and_return ( default_multiple )
42
42
end
43
43
44
+ after do
45
+ ENV . delete ( 'PARALLEL_TEST_MULTIPLY_PROCESSES' )
46
+ end
47
+
44
48
def call ( multiple )
45
49
ParallelTests . determine_multiple ( multiple )
46
50
end
@@ -54,26 +58,16 @@ def call(multiple)
54
58
end
55
59
56
60
it "uses the processor multiple from ENV before Parallel" do
57
- ENV [ '## 4.20.0 - 2025-02-28
58
-
59
- ### Added
60
-
61
- PARALLEL_TEST_MULTIPLY_PROCESSES
62
- ' ] = '0.75'
63
- expect ( call ( nil ) ) . to eq ( 1 )
61
+ ENV [ 'PARALLEL_TEST_MULTIPLY_PROCESSES' ] = '0.75'
62
+ expect ( call ( nil ) ) . to eq ( 0.75 )
64
63
end
65
64
66
65
it "does not use blank multiple" do
67
66
expect ( call ( ' ' ) ) . to eq ( default_multiple )
68
67
end
69
68
70
69
it "does not use blank env" do
71
- ENV [ '## 4.20.0 - 2025-02-28
72
-
73
- ### Added
74
-
75
- PARALLEL_TEST_MULTIPLY_PROCESSES
76
- ' ] = ' '
70
+ ENV [ 'PARALLEL_TEST_MULTIPLY_PROCESSES' ] = ' '
77
71
expect ( call ( nil ) ) . to eq ( default_multiple )
78
72
end
79
73
end
You can’t perform that action at this time.
0 commit comments