diff options
author | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-08 13:21:28 +0000 |
---|---|---|
committer | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-08 13:21:28 +0000 |
commit | 09d2946061379d18407d4de2002a01f3a82c8c84 (patch) | |
tree | eaefbd65eb42404ac9230f108bed0576943269ca /lib/test/unit/ui/testrunnermediator.rb | |
parent | 777681bda1fe3fbc33bd2c3d4ce132e6b8c0042e (diff) | |
download | ruby-09d2946061379d18407d4de2002a01f3a82c8c84.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit/ui/testrunnermediator.rb')
-rw-r--r-- | lib/test/unit/ui/testrunnermediator.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/test/unit/ui/testrunnermediator.rb b/lib/test/unit/ui/testrunnermediator.rb index 41c77dc7a9..bd051e2a51 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 |