[Checkins] SVN: z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/nozopeapptesting.txt Check for warning and run new testsetup in layered_cave.

Uli Fouquet uli at gnufix.de
Mon Oct 26 09:20:30 EDT 2009


Log message for revision 105282:
  Check for warning and run new testsetup in layered_cave.
  

Changed:
  U   z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/nozopeapptesting.txt

-=-
Modified: z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/nozopeapptesting.txt
===================================================================
--- z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/nozopeapptesting.txt	2009-10-26 13:19:21 UTC (rev 105281)
+++ z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/nozopeapptesting.txt	2009-10-26 13:20:30 UTC (rev 105282)
@@ -65,3 +65,35 @@
 
 As we can see, only unit test were run and no functional ones anymore.
 
+When we specify ``:zcml-layer:`` although there is no
+`zope.app.testing` available, we will get a warning while the non
+functional tests should still be registered correctly:
+
+    >>> import sys
+    >>> cavepath = os.path.join(os.path.dirname(__file__), 
+    ...   'tests', 'layered_cave')
+    >>> defaults = [
+    ...     '--path', cavepath,
+    ...     '--tests-pattern', '^layeredsetup02$',
+    ...     ]
+    >>> sys.argv = 'test -vv'.split()
+    >>> from z3c.testsetup import testrunner
+    >>> testrunner.run(defaults)
+    Warning:  You specified `:zcml-file:` in
+    <BLANKLINE>
+        /layered_cave/foo/afunctionaldoctest.txt
+    <BLANKLINE>
+    but there seems to be no `zope.app.testing` package available.
+    Please include `zope.app.testing` in your project setup to run this testfile.
+    <BLANKLINE>
+    Running tests at level 1
+    Running z3c.testsetup.tests.layered_cave.layer.UnitLayer1 tests:
+      Set up z3c.testsetup.tests.layered_cave.layer.UnitLayer1 in N.NNN seconds.
+      Running:
+        Running testSetUp of UnitLayer1
+     /layered_cave/foo/simpledoctest.txt    Running testTearDown of UnitLayer1
+    <BLANKLINE>
+      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
+    Tearing down left over layers:
+      Tear down z3c.testsetup...layered_cave.layer.UnitLayer1 in N.NNN seconds.
+    False



More information about the checkins mailing list