summaryrefslogtreecommitdiff
path: root/test/runner.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-07 15:40:29 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-07 15:40:29 +0000
commitccaf52e244f7da1fc0061ecbc8025b46dcdfd53d (patch)
treef8d575910c93a43ed7bb8d2081a595064e080b55 /test/runner.rb
parent1a643bac88c7f40a5dd8093fcb35d08236b327c5 (diff)
downloadruby-ccaf52e244f7da1fc0061ecbc8025b46dcdfd53d.tar.gz
Measure the test coverage without SimpleCov
Now `make test-all COVERAGE=true` measures the test coverage by using `coverage.so` directly, and visualize the result by simplecov-html. There has been some problems in coverage measurement with SimpleCov. (They are not SimpleCov's fault, though.) (1) It is difficult to extract the measured data as a machine-readable format, such as Marshal. I want to visualize the coverage data with other coverage tools, such as LCOV and Cobertura. (I know we can use SimpleCov's formatter mechanism, but I don't want to depend upon SimpleCov so much.) (2) SimpleCov seems to miss some coverage data. For example, `lib/cgi.rb` and `lib/ostruct.rb` are dropped. I don't know why. (3) I have a plan to enhance `coverage.so` with branch coverage. It would be difficult to continue to only use SimpleCov as is. This is the most important reason. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/runner.rb')
-rw-r--r--test/runner.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/runner.rb b/test/runner.rb
index 1fe32fcfc8..02cc4610df 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -26,14 +26,7 @@ require_relative 'lib/zombie_hunter'
require_relative 'lib/iseq_loader_checker'
if ENV['COVERAGE']
- %w[doclie simplecov-html simplecov].each do |f|
- $LOAD_PATH.unshift "#{src_testdir}/../coverage/#{f}/lib"
- end
-
- require 'simplecov'
- SimpleCov.start do
- add_filter "/test/"
- end
+ require "tool/test-coverage.rb"
end
begin