Skip to content
Draft
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ only add here if you are working on a PR
### Added

### Fixed
- silence filter messages from rspec in base logger
Comment on lines 10 to +12
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Fixed
- silence filter messages from rspec in base logger
- silence filter messages from rspec in base logger to prevent them from being repeated for every process
### Fixed


## 5.7.0 - 2026-04-09

Expand Down
7 changes: 7 additions & 0 deletions lib/parallel_tests/rspec/logger_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module RSpec
class ParallelTests::RSpec::LoggerBase < RSpec::Core::Formatters::BaseTextFormatter
def initialize(*args)
super
silence_filter_messages

@output ||= args[0]

Expand All @@ -28,6 +29,12 @@ def close(*)
@output.close if (IO === @output) & (@output != $stdout)
end

def silence_filter_messages
RSpec.configure do |config|
config.silence_filter_announcements = true
end
end

protected

# do not let multiple processes get in each others way
Expand Down
4 changes: 4 additions & 0 deletions spec/parallel_tests/rspec/logger_base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
@logger = ParallelTests::RSpec::LoggerBase.new(io)
@logger.close
end

it 'filter messages should be silenced' do
expect(RSpec.configuration.silence_filter_announcements).to be true
end
end
end
Loading