Skip to content

Remove extra markdown from Readme and specs #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,7 @@ TIPS
e.g. `config.cache_store = ..., namespace: "test_#{ENV['TEST_ENV_NUMBER']}"`
- Debug errors that only happen with multiple files using `--verbose` and [cleanser](https://github.com/grosser/cleanser)
- `export PARALLEL_TEST_PROCESSORS=13` to override default processor count
- `export ## 4.20.0 - 2025-02-28

### Added

PARALLEL_TEST_MULTIPLY_PROCESSES
=.5` to override default processor multiplier
- `export PARALLEL_TEST_MULTIPLY_PROCESSES=.5` to override default processor multiplier
- Shell alias: `alias prspec='parallel_rspec -m 2 --'`
- [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.
- `--first-is-1` will make the first environment be `1`, so you can test while running your full suite.<br/>
Expand Down
20 changes: 7 additions & 13 deletions spec/parallel_tests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def call(count)
allow(Parallel).to receive(:multiple).and_return(default_multiple)
end

after do
ENV.delete('PARALLEL_TEST_MULTIPLY_PROCESSES')
end

def call(multiple)
ParallelTests.determine_multiple(multiple)
end
Expand All @@ -54,26 +58,16 @@ def call(multiple)
end

it "uses the processor multiple from ENV before Parallel" do
ENV['## 4.20.0 - 2025-02-28

### Added

PARALLEL_TEST_MULTIPLY_PROCESSES
'] = '0.75'
expect(call(nil)).to eq(1)
ENV['PARALLEL_TEST_MULTIPLY_PROCESSES'] = '0.75'
expect(call(nil)).to eq(0.75)
end

it "does not use blank multiple" do
expect(call(' ')).to eq(default_multiple)
end

it "does not use blank env" do
ENV['## 4.20.0 - 2025-02-28

### Added

PARALLEL_TEST_MULTIPLY_PROCESSES
'] = ' '
ENV['PARALLEL_TEST_MULTIPLY_PROCESSES'] = ' '
expect(call(nil)).to eq(default_multiple)
end
end
Expand Down
Loading