mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (Test::Unit::Runner): rename from Test::Unit::Mini.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58ed5a45ff
commit
4e3df72f0d
2 changed files with 8 additions and 9 deletions
|
@ -1,4 +1,6 @@
|
|||
Sat Feb 12 09:30:00 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Feb 12 14:40:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/test/unit.rb (Test::Unit::Runner): rename from Test::Unit::Mini.
|
||||
|
||||
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
|
||||
under base directory if no argument given.
|
||||
|
|
|
@ -183,18 +183,19 @@ module Test
|
|||
end
|
||||
end
|
||||
|
||||
class Mini < MiniTest::Unit
|
||||
class Runner < MiniTest::Unit
|
||||
include Test::Unit::Options
|
||||
include Test::Unit::RequireFiles
|
||||
include Test::Unit::GlobOption
|
||||
include Test::Unit::LoadPathOption
|
||||
include Test::Unit::GCStressOption
|
||||
include Test::Unit::RunCount
|
||||
include Test::Unit::Options
|
||||
|
||||
class << self; undef autorun; end
|
||||
def self.autorun
|
||||
at_exit {
|
||||
Test::Unit::RunCount.run_once {
|
||||
exit(Test::Unit::Mini.new.run(ARGV) || true)
|
||||
exit(Test::Unit::Runner.new.run(ARGV) || true)
|
||||
}
|
||||
} unless @@installed_at_exit
|
||||
@@installed_at_exit = true
|
||||
|
@ -222,10 +223,6 @@ module Test
|
|||
end
|
||||
|
||||
class AutoRunner
|
||||
class Runner < Mini
|
||||
include Test::Unit::RequireFiles
|
||||
end
|
||||
|
||||
attr_accessor :to_run, :options
|
||||
|
||||
def initialize(force_standalone = false, default_dir = nil, argv = ARGV)
|
||||
|
@ -254,4 +251,4 @@ module Test
|
|||
end
|
||||
end
|
||||
|
||||
Test::Unit::Mini.autorun
|
||||
Test::Unit::Runner.autorun
|
||||
|
|
Loading…
Reference in a new issue