API Reference for Enthought Tool Suite 3.2.0
Script to run all the tests each in its own subprocess to ensure maximal correctness and minimal pain. This does make running the tests quite slow but the tests will be run correctly -- which is the important thing.
Use nosetests when it is available
USE_NOSE = False
Find test files given list of arguments which may be files, directories or modules.
Get a test runner for the tests. Uses nose if available.
Get all tests in given directory pth.
Run all the TVTK and mayavi tests.
Run the given tests. Each test file is run as a unittest in a subprocess.
Parameters
tests: List of test file paths to run as tests. These tests are best written as unittests. verbose: An integer in (0, 1, 2). 0 specifies no output. 1 specifies moderate output and 2 very verbose output.
Returns
The error code is returned. If there are errors this is 1 if everything ran fine it returns 0.
| Local name | Refers to |
|---|---|
| dirname | os.path.dirname |
| glob | glob.glob |
| isdir | os.path.isdir |
| isfile | os.path.isfile |
| join | os.path.join |
| optparse | optparse |
| re | re |
| subprocess | subprocess |
| sys | sys |
| time | time |
© Copyright 2002-2009 Enthought, Inc.