These pages document the test suite available in the ‘test’ subdirectoy.
The tests can be categorized in the following functional categories:
- Unit tests, which verify the behavior specific parts of the code.
- Performance tests, which focus on the performance (memory and/or cpu-time).
- Samples, which demonstrate the real-life usage of the tool.
You are encouraged to add your additional test cases to the test suite.
If you want your test to be part of the regression tests (used to validate new releases) the test needs to fit the format of the existing tests.
The test suite is run by the runtest.py script in the test subdirectory. You need to have Python installed on your machine to run the test suite.
Usage:
runtest.py Run all tests. runtest.py --exclude not_this_test Run all tests, except the ones you choose to skip. runtest.py A B Run the tests A and B. runtest.py --debug A Run the test A, verbosely showing its output. runtest.py --help Print information on the script and its options. runtest.py --regression Run all tests, except the ones not suitable in a regression test. See the code of the script to see which tests are excluded.
The tests described here only test the core library.
A separate test suite exists for the Django user interface.