We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a0e5cb + 898ee6e commit 5409e1aCopy full SHA for 5409e1a
test/lib/helper.rb
@@ -1,11 +1,16 @@
1
require "simplecov"
2
3
# Cannot use ".simplecov" file: simplecov-json triggers a circular require.
4
-require "simplecov-json"
5
-SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
6
- SimpleCov::Formatter::HTMLFormatter,
7
- SimpleCov::Formatter::JSONFormatter,
8
-])
+begin
+ require "simplecov-json"
+ SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
+ SimpleCov::Formatter::HTMLFormatter,
+ SimpleCov::Formatter::JSONFormatter,
9
+ ])
10
+rescue LoadError
11
+ # for `make test-bundled-gems` in ruby-core repository.
12
+ # That task does not install C extension gem like json.
13
+end
14
15
SimpleCov.start do
16
command_name "Net::IMAP tests"
0 commit comments