[Zope3-checkins] SVN: Zope3/branches/srichter-twisted-integration/ Added Twisted test runner; unfortunately our test runner would have a hard

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Apr 20 22:50:06 EDT 2005


Log message for revision 30072:
  Added Twisted test runner; unfortunately our test runner would have a hard 
  time collecting the twisted tests and run them properly for several 
  reasons:
  
  - Twisted's tests are in a directory called 'test', not 'tests'.
  
  - Twisted's test need some special test setup that understands on how to 
    interpret deferred function return values.
  
  If you really want to integrate Twisted's tests in our test runner, please 
  do so; I would really appreciate it!
  
  

Changed:
  _U  Zope3/branches/srichter-twisted-integration/
  A   Zope3/branches/srichter-twisted-integration/trial.py

-=-

Property changes on: Zope3/branches/srichter-twisted-integration
___________________________________________________________________
Name: svn:ignore
   - overrides_ftesting.zcml
products_ftesting.zcml
principals.zcml
products.zcml
overrides.zcml
zope.conf
Data.fs
Data.fs.*
build
dist
coverage
z3.log
access.log
test-db
zdsock
setup.bat
start.bat
test.bat

   + overrides_ftesting.zcml
products_ftesting.zcml
principals.zcml
products.zcml
overrides.zcml
zope.conf
Data.fs
Data.fs.*
build
dist
coverage
z3.log
access.log
test-db
zdsock
setup.bat
start.bat
test.bat
_trial_temp


Added: Zope3/branches/srichter-twisted-integration/trial.py
===================================================================
--- Zope3/branches/srichter-twisted-integration/trial.py	2005-04-21 02:39:49 UTC (rev 30071)
+++ Zope3/branches/srichter-twisted-integration/trial.py	2005-04-21 02:50:01 UTC (rev 30072)
@@ -0,0 +1,27 @@
+#!/usr/bin/env python2.3
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Test script
+
+$Id: test.py 29143 2005-02-14 22:43:16Z srichter $
+"""
+import sys, os
+
+here = os.path.dirname(os.path.realpath(__file__))
+sys.path.insert(0, os.path.join(here, 'src'))
+
+from twisted.scripts.trial import run
+
+if __name__ == '__main__':
+    run()


Property changes on: Zope3/branches/srichter-twisted-integration/trial.py
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native



More information about the Zope3-Checkins mailing list