Disable to run for bundled gems in test-spec

This commit is contained in:
Hiroshi SHIBATA 2024-02-15 09:49:13 +09:00
Родитель 92eab382e4
Коммит 76d322b5d2
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -31,6 +31,16 @@ class MSpecScript
]
end
# Disable to run for bundled gems in test-spec
bundled_gems = File.readlines("gems/bundled_gems").map do |line|
next if /^\s*(?:#|$)/ =~ line
"library/" + line.split.first
end.compact
stdlibs = Dir.glob("ruby/library/*").map{|d| d.sub(%r'\Aruby/', '')}
set :library, stdlibs - bundled_gems
set :files, get(:command_line) + get(:language) + get(:core) + get(:library) + get(:security) + get(:optional)
if ENV.key?("COVERAGE")
set :excludes, ["Coverage"]
end