Prepend the modules in Test::Unit

Needs to override Test::Unit::Runner#run, so that RunCount#run
runs which increments @@run_count.  Previously it worked because
these methods were inserted between Test::Unit::Runner#run and
MiniTest::Unit#run.
This commit is contained in:
Nobuyoshi Nakada 2021-09-12 03:23:59 +09:00
Родитель 7686776c05
Коммит 308183fffa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
1 изменённых файлов: 11 добавлений и 11 удалений

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

@ -1475,18 +1475,18 @@ module Test
io.puts format % [test_count, assertion_count, failures, errors, skips]
end
include Test::Unit::Options
prepend Test::Unit::Options
prepend Test::Unit::StatusLine
include Test::Unit::Parallel
include Test::Unit::Statistics
include Test::Unit::Skipping
include Test::Unit::GlobOption
include Test::Unit::RepeatOption
include Test::Unit::LoadPathOption
include Test::Unit::GCOption
include Test::Unit::ExcludesOption
include Test::Unit::TimeoutOption
include Test::Unit::RunCount
prepend Test::Unit::Parallel
prepend Test::Unit::Statistics
prepend Test::Unit::Skipping
prepend Test::Unit::GlobOption
prepend Test::Unit::RepeatOption
prepend Test::Unit::LoadPathOption
prepend Test::Unit::GCOption
prepend Test::Unit::ExcludesOption
prepend Test::Unit::TimeoutOption
prepend Test::Unit::RunCount
##
# Begins the full test run. Delegates to +runner+'s #_run method.