4 The default behavior is to add the source directory to the import path.
5 Developers are expected to build the extension libraries in place with:
7 python setup.py build_ext -i
9 See the section on flags on how to customize this behavior.
14 Test modules end with _test.py suffix. Each test module may be
15 executed on its own and will produce high verbosity output.
17 The runtests.py script may be used to run all test modules
20 Run all tests (modules that end in _test.py):
23 To run one test you can execute the file itself:
26 Other way to run one test is via the runtest script:
27 python runtest.py seqdb_test.py
30 python runtest.py seqdb_test.py sequence_test.py
32 Run all tests excluding seqdb_test:
33 python runtest.py -x seqdb_test.py
35 Change verbosity levels:
36 python runtest.py -v 2
38 You may use full file names, or module names.
43 To see the flags execute the script with the -h flag
47 Usage: runtest.py [options]
50 -h, --help show this help message and exit
51 -n, --nopath do not alter the python import path
52 -b, --buildpath use the platform specific build directory
53 -s, --strict stops testing after a test suite fails
54 -x, --exclude excludes the files that are listed
55 -v VERBOSITY, --verbosity=VERBOSITY
56 sets the verbosity (0, 1, or 2)
57 --coverage runs figleaf and collects the coverage information
58 --performance runs the performance tests (not implemented)
60 These options are only used internally:
62 --port=PORT sets the port information for the XMLRPC server
63 --pygrdatapath=PYGRDATAPATH
64 sets the pygraphdata path for the XMLRPC server
65 --downloadDB=DOWNLOADDB
66 sets the downloadDB shelve for the XMLRPC server
68 sets the downloadable resources, separate multiple
73 - The lowest (0) verbosity turns off DEBUG level messages
74 - The test specific connection information is read out from the
75 mysql.cnf file in the tests2 directory (for now it is last resort
76 but should be the primary way)
77 - The main test runner will delete the temp directory before each run.
78 - Each test module must implement the get_suite() function that returns
80 - Import the pathfix module at the start of each test module to alter the
81 import path. This module will parse and apply the command line variables.