Back to index

plone3  3.1.7
Functions | Variables
Marshall.tests.framework Namespace Reference


def ImmediateTestRunner


string __version__ = '0.2.3'
tuple __SOFTWARE_HOME = os.environ.get('SOFTWARE_HOME', '')
tuple __INSTANCE_HOME = os.environ.get('INSTANCE_HOME', '')
list p0 = sys.path[0]
tuple p = dsandsoros.getcwd()
tuple zope_home = os.path.dirname(os.path.dirname(p))
tuple __ZOPE_HOME = os.path.join(__SOFTWARE_HOME, '..', '..')
tuple __TESTRUNNER = os.path.join(__ZOPE_HOME, '')
dictionary GLB = {'__name__':None}
 TestRunner = ImmediateTestRunner
string ztc_common = ''
tuple ztc_common_global = os.path.join(p, ztc_common)
int f = 0

Function Documentation

Definition at line 84 of file

00085     def ImmediateTestRunner(*args):
00086         stream = sys.stdout
00087         descriptions = 0
00088         verbosity = 1
00089         if len(args) == 3:
00090             stream, descriptions, verbosity = args
00091         return GLB['ImmediateTestRunner'](stream=stream,
00092                                           descriptions=descriptions,
00093                                           verbosity=verbosity,

Variable Documentation

tuple Marshall.tests.framework.__INSTANCE_HOME = os.environ.get('INSTANCE_HOME', '')

Definition at line 45 of file

tuple Marshall.tests.framework.__SOFTWARE_HOME = os.environ.get('SOFTWARE_HOME', '')

Definition at line 44 of file

tuple Marshall.tests.framework.__TESTRUNNER = os.path.join(__ZOPE_HOME, '')

Definition at line 79 of file



This version of will use the SOFTWARE_HOME environment variable to locate Zope and the Testing package.

If the tests are run in an INSTANCE_HOME installation of Zope, Products.__path__ and sys.path with be adjusted to include the instance's Products and lib/python directories respectively.

If you explicitly set INSTANCE_HOME prior to running the tests, auto-detection is disabled and the specified path will be used instead.

If the 'tests' directory contains a file, INSTANCE_HOME will be adjusted to use it.

If you set the ZEO_INSTANCE_HOME environment variable a ZEO setup is assumed, and you can attach to a running ZEO server (via the instance's

The following code should be at the top of every test module:

import os, sys if name == 'main': execfile(os.path.join(sys.path[0], ''))

...and the following at the bottom:

if name == 'main': framework()

Definition at line 40 of file

tuple Marshall.tests.framework.__ZOPE_HOME = os.path.join(__SOFTWARE_HOME, '..', '..')

Definition at line 78 of file

Definition at line 110 of file

dictionary Marshall.tests.framework.GLB = {'__name__':None}

Definition at line 82 of file

tuple Marshall.tests.framework.p = dsandsoros.getcwd()

Definition at line 61 of file

string Marshall.tests.framework.p0 = sys.path[0]

Definition at line 56 of file

Definition at line 60 of file

Definition at line 94 of file

tuple Marshall.tests.framework.zope_home = os.path.dirname(os.path.dirname(p))

Definition at line 64 of file

string Marshall.tests.framework.ztc_common = ''

Definition at line 107 of file

Definition at line 108 of file