[Zope-Checkins] SVN: Zope/trunk/src/Testing/ZopeTestCase/ Update some references to the testrunner and removed obsolete docs in ZTC

Hanno Schlichting hannosch at hannosch.eu
Tue Jan 4 16:27:41 EST 2011


Log message for revision 119375:
  Update some references to the testrunner and removed obsolete docs in ZTC
  

Changed:
  U   Zope/trunk/src/Testing/ZopeTestCase/doc/ENVIRONMENT.txt
  U   Zope/trunk/src/Testing/ZopeTestCase/doc/README.stx
  U   Zope/trunk/src/Testing/ZopeTestCase/layer.py
  U   Zope/trunk/src/Testing/ZopeTestCase/tests.py
  U   Zope/trunk/src/Testing/ZopeTestCase/zopedoctest/tests.py

-=-
Modified: Zope/trunk/src/Testing/ZopeTestCase/doc/ENVIRONMENT.txt
===================================================================
--- Zope/trunk/src/Testing/ZopeTestCase/doc/ENVIRONMENT.txt	2011-01-04 21:24:02 UTC (rev 119374)
+++ Zope/trunk/src/Testing/ZopeTestCase/doc/ENVIRONMENT.txt	2011-01-04 21:27:41 UTC (rev 119375)
@@ -41,8 +41,3 @@
 
 ZEO support ("both") is handled separately, through the new environment 
 variable ZEO_INSTANCE_HOME.
-
-
-You may want to consider using a testrunner to run your tests. You can find one 
-here: http://zope.org/Members/shh/TestRunner
-

Modified: Zope/trunk/src/Testing/ZopeTestCase/doc/README.stx
===================================================================
--- Zope/trunk/src/Testing/ZopeTestCase/doc/README.stx	2011-01-04 21:24:02 UTC (rev 119374)
+++ Zope/trunk/src/Testing/ZopeTestCase/doc/README.stx	2011-01-04 21:27:41 UTC (rev 119375)
@@ -13,8 +13,6 @@
 
         2. Create an (empty) '__init__.py' in 'tests' to make it a package.
 
-        3. Copy 'framework.py' from the 'ZopeTestCase' package into 'tests'.
-
     Once a test suite has been set up, you can add test modules:
 
         1. Create a file with a name matching 'test*.py'.
@@ -34,56 +32,8 @@
            called after the fixture has been set up and before the fixture is destroyed
            respectively. 
 
-        5. Follow the instructions in 'framework.py' about adding lines to the
-           top and bottom of the file.
-
-    Now you can run the test as 'python path/to/tests/testName.py', or
-    simply go to the 'tests' directory and type 'python testName.py'.
-
     Note that there is a skeleton test suite named 'testSkeleton.py' that you 
     may copy into your 'tests' directory and take it from there.
 
-    Note also that when the tests are run in an INSTANCE_HOME installation of 
-    Zope, you must set the SOFTWARE_HOME environment variable for the 'Testing' 
-    and 'ZopeTestCase' packages to be found.
-
     See the sample tests in the 'ZopeTestCase' directory for details on writing 
     your own tests.
-
-framework.py
-
-    1. Uses SOFTWARE_HOME (if set) to locate the Testing package.
-
-    2. Detects and handles INSTANCE_HOME installations of Zope. Please
-       see ENVIRONMENT.txt for the assumptions ZTC makes about its
-       environment.
-
-    3. Supports setting up a ZODB from a 'custom_zodb.py' file in
-       the 'tests' directory.
-
-    4. Allows to connect to a running ZEO server by setting the
-       ZEO_INSTANCE_HOME environment variable.
-
-testrunner.py
-
-    Alternatively, you may use Zope's testrunner utility to run your tests 
-    ('testrunner.py' can be found in the 'utilities' directory of your Zope 
-    installation). If you do so, you will have to define a 'test_suite' method 
-    in your modules (see examples). 
-
-    There is no need to set SOFTWARE_HOME when using the testrunner but you may
-    have to provide the -i flag when testing in an INSTANCE_HOME setup.
-
-    Example: 'python /path/to/Zope/utilities/testrunner.py -q -i -a'
-
-    If your testrunner does not appear to support the -i flag get the one from
-    'http://zope.org/Members/shh/TestRunner'
-
-    Note that the 'custom_zodb.py' magic (3. + 4.) is not available when using
-    the testrunner.
-
-    If you have tests that should not be picked up by the testrunner, make a
-    'test_suite' method that returns an empty TestSuite.
-
-    Note that in Zope 2.7 the testrunner lives in '/path/to/Zope/bin'.
-

Modified: Zope/trunk/src/Testing/ZopeTestCase/layer.py
===================================================================
--- Zope/trunk/src/Testing/ZopeTestCase/layer.py	2011-01-04 21:24:02 UTC (rev 119374)
+++ Zope/trunk/src/Testing/ZopeTestCase/layer.py	2011-01-04 21:27:41 UTC (rev 119375)
@@ -33,7 +33,7 @@
            triggering the testrunner's "resume layer"
            mechanism.
 
-           See zope.testing.testrunner-layers-ntd.txt
+           See zope.testrunner-layers-ntd.txt
         '''
 
 ZopeLiteLayer = ZopeLite

Modified: Zope/trunk/src/Testing/ZopeTestCase/tests.py
===================================================================
--- Zope/trunk/src/Testing/ZopeTestCase/tests.py	2011-01-04 21:24:02 UTC (rev 119374)
+++ Zope/trunk/src/Testing/ZopeTestCase/tests.py	2011-01-04 21:27:41 UTC (rev 119375)
@@ -10,7 +10,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Test runner that works with zope.testing.testrunner
+"""Test runner that works with zope.testrunner
 """
 
 import unittest

Modified: Zope/trunk/src/Testing/ZopeTestCase/zopedoctest/tests.py
===================================================================
--- Zope/trunk/src/Testing/ZopeTestCase/zopedoctest/tests.py	2011-01-04 21:24:02 UTC (rev 119374)
+++ Zope/trunk/src/Testing/ZopeTestCase/zopedoctest/tests.py	2011-01-04 21:27:41 UTC (rev 119375)
@@ -10,7 +10,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Test runner that works with zope.testing.testrunner
+"""Test runner that works with zope.testrunner
 """
 
 import unittest



More information about the Zope-Checkins mailing list