File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 121
121
def nokogiri_test_task_configuration ( t )
122
122
t . libs << "test"
123
123
t . verbose = true if ENV [ "TESTGLOB" ]
124
+ t . test_prelude = 'require "simplecov_prelude"' if t . respond_to? ( :test_prelude )
124
125
end
125
126
126
127
def nokogiri_test_case_configuration ( t )
Original file line number Diff line number Diff line change 12
12
# - NOKOGIRI_MEMORY_SUITE: read more in test/test_memory_usage.rb
13
13
#
14
14
15
- unless ENV [ "RUBY_MEMCHECK_RUNNING" ] || ENV [ "NCPU" ]
16
- require "simplecov"
17
- SimpleCov . start do
18
- add_filter "/test/"
19
- enable_coverage :branch
20
- end
21
- end
22
-
23
15
$VERBOSE = true
24
16
25
17
require "fileutils"
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ # https://github.com/simplecov-ruby/simplecov/issues/1032
4
+ unless ENV [ "RUBY_MEMCHECK_RUNNING" ] || ENV [ "NCPU" ] . to_i > 1
5
+ require "simplecov"
6
+ SimpleCov . start do
7
+ add_filter "/test/"
8
+ enable_coverage :branch
9
+ end
10
+ end
You can’t perform that action at this time.
0 commit comments