From 6584a8c73cd7b4b27cd6a7452a733edfa1aa8b97 Mon Sep 17 00:00:00 2001 From: ntalbott Date: Wed, 8 Oct 2003 13:21:28 +0000 Subject: * lib/test/unit.rb: removed installation instructions. * lib/test/unit/ui/testrunnermediator.rb: moved the run flag to a more central location. * lib/test/unit.rb: ditto. * lib/test/unit.rb: extracted the running code in to AutoRunner. * lib/test/unit/autorunner.rb: added. * lib/test/unit/collector/objectspace.rb: extracted common test collection functionality in to a module. * lib/test/unit/collector.rb: ditto; added. * test/testunit/collector/test_objectspace.rb: ditto. * lib/test/unit/collector/dir.rb: added. Supports collecting tests out of a directory structure. * test/testunit/collector/test_dir.rb: added. * test/runner.rb: simplified to use the new capabilities. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/test/unit/ui/testrunnermediator.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib/test/unit/ui') diff --git a/lib/test/unit/ui/testrunnermediator.rb b/lib/test/unit/ui/testrunnermediator.rb index 41c77dc7a..bd051e2a5 100644 --- a/lib/test/unit/ui/testrunnermediator.rb +++ b/lib/test/unit/ui/testrunnermediator.rb @@ -20,14 +20,6 @@ module Test include Util::Observable - @@run = false - - # Returns true if any TestRunnerMediator instances - # have been run. - def self.run? - return @@run - end - # Creates a new TestRunnerMediator initialized to run # the passed suite. def initialize(suite) @@ -37,7 +29,7 @@ module Test # Runs the suite the TestRunnerMediator was created # with. def run_suite - @@run = true + Unit.run = true begin_time = Time.now notify_listeners(RESET, @suite.size) result = create_result -- cgit