vendor/Five/1.2b-r20590

view runtests.py @ 0:3673ed425f80

Vendor import of Five 1.2b+ (r20590)
author fguillaume
date Fri, 02 Dec 2005 20:25:42 +0000
parents
children
line source
1 ##############################################################################
2 #
3 # Copyright (c) 2005 Zope Corporation and Contributors.
4 # All Rights Reserved.
5 #
6 # This software is subject to the provisions of the Zope Public License,
7 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
8 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11 # FOR A PARTICULAR PURPOSE.
12 #
13 ##############################################################################
14 """Run tests
16 Run tests with the (temporarily) forked new-and-improved test runner
17 and supporting 'zope.testing' package, now located at
18 Products.Five.testing.
20 To run tests, use the ``zopectl`` script::
22 $ bin/zopectl run Products/Five/runtests.py -v -s Products.Five
24 $Id: runtests.py 19226 2005-10-31 11:39:06Z philikon $
25 """
26 import os, sys
27 from Products.Five.testing import testrunner
29 instance = os.path.abspath(
30 os.path.join(os.path.split(sys.argv[0])[0], '..'))
32 defaults = [
33 '--path', instance,
34 '--path', '%s/lib/python' % instance,
35 '--package', 'Products',
36 '--tests-pattern', '^tests$',
37 ]
39 sys.exit(testrunner.run(defaults))