зеркало из https://github.com/github/ruby.git
Enable code-coverage result for test-spec
This commit is contained in:
Родитель
2d98127131
Коммит
545ade21a2
|
@ -4,6 +4,7 @@ if (opt = ENV["RUBYOPT"]) and (opt = opt.dup).sub!(/(?:\A|\s)-w(?=\z|\s)/, '')
|
|||
ENV["RUBYOPT"] = opt
|
||||
end
|
||||
require "./rbconfig" unless defined?(RbConfig)
|
||||
require_relative "../tool/test-coverage" if ENV.key?("COVERAGE")
|
||||
load File.dirname(__FILE__) + '/ruby/default.mspec'
|
||||
OBJDIR = File.expand_path("spec/ruby/optional/capi/ext")
|
||||
class MSpecScript
|
||||
|
@ -25,6 +26,10 @@ class MSpecScript
|
|||
--
|
||||
]
|
||||
end
|
||||
|
||||
if ENV.key?("COVERAGE")
|
||||
set :excludes, ["Coverage"]
|
||||
end
|
||||
end
|
||||
|
||||
module MSpecScript::JobServer
|
||||
|
|
Загрузка…
Ссылка в новой задаче