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:
parent
7686776c05
commit
308183fffa
@ -1475,18 +1475,18 @@ module Test
|
|||||||
io.puts format % [test_count, assertion_count, failures, errors, skips]
|
io.puts format % [test_count, assertion_count, failures, errors, skips]
|
||||||
end
|
end
|
||||||
|
|
||||||
include Test::Unit::Options
|
prepend Test::Unit::Options
|
||||||
prepend Test::Unit::StatusLine
|
prepend Test::Unit::StatusLine
|
||||||
include Test::Unit::Parallel
|
prepend Test::Unit::Parallel
|
||||||
include Test::Unit::Statistics
|
prepend Test::Unit::Statistics
|
||||||
include Test::Unit::Skipping
|
prepend Test::Unit::Skipping
|
||||||
include Test::Unit::GlobOption
|
prepend Test::Unit::GlobOption
|
||||||
include Test::Unit::RepeatOption
|
prepend Test::Unit::RepeatOption
|
||||||
include Test::Unit::LoadPathOption
|
prepend Test::Unit::LoadPathOption
|
||||||
include Test::Unit::GCOption
|
prepend Test::Unit::GCOption
|
||||||
include Test::Unit::ExcludesOption
|
prepend Test::Unit::ExcludesOption
|
||||||
include Test::Unit::TimeoutOption
|
prepend Test::Unit::TimeoutOption
|
||||||
include Test::Unit::RunCount
|
prepend Test::Unit::RunCount
|
||||||
|
|
||||||
##
|
##
|
||||||
# Begins the full test run. Delegates to +runner+'s #_run method.
|
# Begins the full test run. Delegates to +runner+'s #_run method.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user