The information on this page is obsolete, incomplete or incorrect and left here only for reference and has not been ported to the new documentation wiki.
Please refer to the TurboGears documentation wiki for up-to-date documentation.
Note: This document was written against rev 776 on February 14, 2006.
The nose test framework is installed as part of the TurboGears easy_install process. To run the full suite of unit tests, cd to the top level of your turbogears checkout and run:
This command will recursively search the working directory for directories, modules, and files whose names start with 'Test' or 'test'. Nose will then search for methods in these files starting with 'Test' or 'test' and will execute these methods as test cases.
Running particular tests
As a whole, the entire TG test suite takes very little time to run, but if you want to restrict the tests to a particular file, run:
nosetests -f ./path/to/testfile.py
For more details, see the nose usage documentation.