[Checkins] SVN: z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/ intermediary commit:

Reinout van Rees reinout at vanrees.org
Fri Aug 14 16:04:16 EDT 2009


Log message for revision 102789:
  intermediary commit:
  allow_teardown *is* passed to the zcml layer setup, but not all tests have been fixed yet.

Changed:
  U   z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/README.txt
  U   z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/doctesting.py
  U   z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/testrunner.txt
  U   z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/tests/setupininit.txt

-=-
Modified: z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/README.txt
===================================================================
--- z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/README.txt	2009-08-14 18:42:39 UTC (rev 102788)
+++ z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/README.txt	2009-08-14 20:04:15 UTC (rev 102789)
@@ -150,11 +150,11 @@
       Set up z3c...DefaultZCMLLayer [...ftesting.zcml] in N.NNN seconds.
       Ran 3 tests with 0 failures and 0 errors in N.NNN seconds.
     Running z3c...layer.DefaultZCMLLayer [...ftesting2.zcml] tests:
-      Tear down z3c...DefaultZCMLLayer [...ftesting.zcml] ... not supported
+      Tear down z3c...DefaultZCMLLayer [...ftesting.zcml] ...
       Running in a subprocess.
       Set up z3c...DefaultZCMLLayer [...ftesting2.zcml] in N.NNN seconds.
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
-      Tear down z3c...DefaultZCMLLayer [...ftesting2.zcml] ... not supported
+      Tear down z3c...DefaultZCMLLayer [...ftesting2.zcml] ...
     Running z3c.testsetup.tests.othercave.testing.UnitLayer2 tests:
       Running in a subprocess.
       Set up z3c.testsetup.tests.othercave.testing.UnitLayer1 in N.NNN seconds.

Modified: z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/doctesting.py
===================================================================
--- z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/doctesting.py	2009-08-14 18:42:39 UTC (rev 102788)
+++ z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/doctesting.py	2009-08-14 20:04:15 UTC (rev 102789)
@@ -47,9 +47,9 @@
 class SimpleDocTestSetup(DocTestSetup):
     """A unified doctest setup for packages.
     """
-    
+
     extensions = ['.rst', '.txt', '.py']
-    
+
     def getTestSuite(self):
         docfiles = self.getDocTestFiles(package=self.package)
         suite = unittest.TestSuite()
@@ -92,7 +92,7 @@
 """ % (os.path.join(common_prefix, name),))
                     continue
                 suite_creator = FunctionalDocFileSuite
-                
+
             test = suite_creator(
                 name,
                 package=self.package,
@@ -127,7 +127,8 @@
             os.path.join(os.path.dirname(filepath), zcml_file),
             DefaultZCMLLayer.__module__,
             '%s [%s]' % (DefaultZCMLLayer.__name__,
-                         os.path.join(os.path.dirname(filepath), zcml_file)))
+                         os.path.join(os.path.dirname(filepath), zcml_file)),
+            allow_teardown=True)
         return layer
 
     def isTestFile(self, filepath):

Modified: z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/testrunner.txt
===================================================================
--- z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/testrunner.txt	2009-08-14 18:42:39 UTC (rev 102788)
+++ z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/testrunner.txt	2009-08-14 20:04:15 UTC (rev 102789)
@@ -39,7 +39,7 @@
       Set up z3c...functional.doctesting.FunctionalLayer in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
     Running zope.testing.testrunner.layer.UnitTests tests:
-      Tear down z3c...functional.doctesting.FunctionalLayer ... not supported
+      Tear down z3c...functional.doctesting.FunctionalLayer ...
       Running in a subprocess.
       Set up zope.testing.testrunner.layer.UnitTests in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
@@ -50,6 +50,8 @@
 Of the four tests apparently run, there is one 'normal' python test
 and three doctests, of which two are functional doctests.
 
+TODO for Reinout: test with functionallayers WITH the "not supported" message.
+
 Now, we only want to run the doctests in the ``cave`` package. A
 suitable setup is contained in `samplesetup_short1.py`` in the
 ``cave`` package::
@@ -73,7 +75,7 @@
       Set up z3c.testsetup...doctesting.FunctionalLayer in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
     Running zope.testing.testrunner.layer.UnitTests tests:
-      Tear down z3c.testsetup...doctesting.FunctionalLayer ... not supported
+      Tear down z3c.testsetup...doctesting.FunctionalLayer ...
       Running in a subprocess.
       Set up zope.testing.testrunner.layer.UnitTests in N.NNN seconds.
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
@@ -105,7 +107,7 @@
       Set up z3c.testsetup...doctesting.FunctionalLayer in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
     Running zope.testing.testrunner.layer.UnitTests tests:
-      Tear down z3c.testsetup...doctesting.FunctionalLayer ... not supported
+      Tear down z3c.testsetup...doctesting.FunctionalLayer ...
       Running in a subprocess.
       Set up zope.testing.testrunner.layer.UnitTests in N.NNN seconds.
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
@@ -186,7 +188,7 @@
       Set up z3c.testsetup.tests.cave.SampleLayer in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
     Running zope.testing.testrunner.layer.UnitTests tests:
-      Tear down z3c.testsetup.tests.cave.SampleLayer ... not supported
+      Tear down z3c.testsetup.tests.cave.SampleLayer ...
       Running in a subprocess.
       Set up zope.testing.testrunner.layer.UnitTests in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
@@ -239,7 +241,7 @@
       Set up z3c.testsetup....doctesting.FunctionalLayer in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
     Tearing down left over layers:
-      Tear down z3c.testsetup....doctesting.FunctionalLayer ... not supported
+      Tear down z3c.testsetup....doctesting.FunctionalLayer ...
     False
 
 The same setup, but without a modified checker will deliver::
@@ -274,7 +276,7 @@
     <BLANKLINE>
       Ran 2 tests with 1 failures and 0 errors in ... seconds.
     Tearing down left over layers:
-      Tear down z3c.testsetup....doctesting.FunctionalLayer ... not supported
+      Tear down z3c.testsetup....doctesting.FunctionalLayer ...
     True
 
 Note that checkers are currently only supported for functional
@@ -330,7 +332,7 @@
       Set up z3c.testsetup....doctesting.FunctionalLayer in ... seconds.
       Ran 1 tests with 0 failures and 0 errors in ... seconds.
     Tearing down left over layers:
-      Tear down z3c.testsetup....doctesting.FunctionalLayer ... not supported
+      Tear down z3c.testsetup....doctesting.FunctionalLayer ...
     False
 
 The testrunner finished without any error. So the ``basename``
@@ -435,7 +437,7 @@
       Set up z3c.testsetup...doctesting.FunctionalLayer in N.NNN seconds.
       Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
     Running zope.testing.testrunner.layer.UnitTests tests:
-      Tear down z3c.testsetup...doctesting.FunctionalLayer ... not supported
+      Tear down z3c.testsetup...doctesting.FunctionalLayer ...
       Running in a subprocess.
       Set up zope.testing.testrunner.layer.UnitTests in N.NNN seconds.
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
@@ -517,22 +519,20 @@
       Set up z3c...DefaultZCMLLayer [/.../bar/ftesting.zcml] in N.NNN seconds.
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
     Running z3c...DefaultZCMLLayer [/.../foo/ftesting.zcml] tests:
-      Tear down z3c...efaultZCMLLayer [/.../bar/ftesting.zcml] ... not supported
-      Running in a subprocess.
+      Tear down z3c...efaultZCMLLayer [/.../bar/ftesting.zcml] ...
       Set up z3c...efaultZCMLLayer [/.../foo/ftesting.zcml] in N.NNN seconds.
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
-      Tear down z3c...efaultZCMLLayer [/.../foo/ftesting.zcml] ... not supported
     Running z3c.testsetup.tests.layered_cave.layer.FunctionalLayer1 tests:
-      Running in a subprocess.
+      Tear down z3c...efaultZCMLLayer [/.../foo/ftesting.zcml] ...
       Set up z3c...layered_cave.layer.FunctionalLayer1 in N.NNN seconds.
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
+    Running z3c.testsetup.tests.layered_cave.layer.UnitLayer1 tests:
       Tear down z3c...layered_cave.layer.FunctionalLayer1 in N.NNN seconds.
-    Running z3c.testsetup.tests.layered_cave.layer.UnitLayer1 tests:
-      Running in a subprocess.
       Set up z3c.testsetup.tests.layered_cave.layer.UnitLayer1 in N.NNN seconds.
         Running testSetUp of UnitLayer1
         Running testTearDown of UnitLayer1
       Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
+    Tearing down left over layers:
       Tear down z3c...layered_cave.layer.UnitLayer1 in N.NNN seconds.
     Total: 4 tests, 0 failures, 0 errors in N.NNN seconds.
     False

Modified: z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/tests/setupininit.txt
===================================================================
--- z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/tests/setupininit.txt	2009-08-14 18:42:39 UTC (rev 102788)
+++ z3c.testsetup/branches/reinout-teardown/src/z3c/testsetup/tests/setupininit.txt	2009-08-14 20:04:15 UTC (rev 102789)
@@ -34,7 +34,7 @@
       Set up z3c.testsetup.functional.doctesting.FunctionalLayer in 0.040 seconds.
       Ran 2 tests with 0 failures and 0 errors in 0.004 seconds.
     Running zope.testing.testrunner.layer.UnitTests tests:
-      Tear down z3c.testsetup.functional.doctesting.FunctionalLayer ... not supported
+      Tear down z3c.testsetup.functional.doctesting.FunctionalLayer ...
       Running in a subprocess.
       Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
       Ran 2 tests with 0 failures and 0 errors in 0.003 seconds.



More information about the Checkins mailing list