* 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
@ -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
|
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
|
||||||
under base directory if no argument given.
|
under base directory if no argument given.
|
||||||
|
@ -183,18 +183,19 @@ module Test
|
|||||||
end
|
end
|
||||||
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::GlobOption
|
||||||
include Test::Unit::LoadPathOption
|
include Test::Unit::LoadPathOption
|
||||||
include Test::Unit::GCStressOption
|
include Test::Unit::GCStressOption
|
||||||
include Test::Unit::RunCount
|
include Test::Unit::RunCount
|
||||||
include Test::Unit::Options
|
|
||||||
|
|
||||||
class << self; undef autorun; end
|
class << self; undef autorun; end
|
||||||
def self.autorun
|
def self.autorun
|
||||||
at_exit {
|
at_exit {
|
||||||
Test::Unit::RunCount.run_once {
|
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
|
} unless @@installed_at_exit
|
||||||
@@installed_at_exit = true
|
@@installed_at_exit = true
|
||||||
@ -222,10 +223,6 @@ module Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
class AutoRunner
|
class AutoRunner
|
||||||
class Runner < Mini
|
|
||||||
include Test::Unit::RequireFiles
|
|
||||||
end
|
|
||||||
|
|
||||||
attr_accessor :to_run, :options
|
attr_accessor :to_run, :options
|
||||||
|
|
||||||
def initialize(force_standalone = false, default_dir = nil, argv = ARGV)
|
def initialize(force_standalone = false, default_dir = nil, argv = ARGV)
|
||||||
@ -254,4 +251,4 @@ module Test
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Test::Unit::Mini.autorun
|
Test::Unit::Runner.autorun
|
||||||
|
Loading…
x
Reference in New Issue
Block a user