From 355c032fcff8ad90d298c2ae5fd107d350142623 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 2 Sep 2014 07:59:18 +0000 Subject: * test/runner.rb: reporting test coverage for test-all with COVERAGE env. [Feature #10189][ruby-core:64681] * Makefile.in: added task for coverage report. * common.mk: added definition of forked simplecov url. * .gitignore: ignored coverage directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/runner.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/runner.rb b/test/runner.rb index 61fb0960f8..0e6ee3bea4 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -31,6 +31,12 @@ module Test::Unit end end +if ENV['COVERAGE'] + $LOAD_PATH.unshift "#{src_testdir}/../coverage/simplecov/lib" + require 'simplecov' + SimpleCov.start +end + begin exit Test::Unit::AutoRunner.run(true, src_testdir) rescue NoMemoryError -- cgit v1.2.3