Skip to content

Commit

Permalink
Removed needless workaround
Browse files Browse the repository at this point in the history
Revert "Make simplecov-json as optional dependency"

This reverts commit 898ee6e.
  • Loading branch information
hsbt committed Oct 31, 2024
1 parent 5409e1a commit 235964b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/lib/helper.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
require "simplecov"

# Cannot use ".simplecov" file: simplecov-json triggers a circular require.
begin
require "simplecov-json"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
])
rescue LoadError
# for `make test-bundled-gems` in ruby-core repository.
# That task does not install C extension gem like json.
end
require "simplecov-json"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
])

SimpleCov.start do
command_name "Net::IMAP tests"
Expand Down

0 comments on commit 235964b

Please sign in to comment.