wiki:RunningTests
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Version 3 (modified by anonymous, 13 years ago) (diff)

--

Note: This document was written against rev 776 on February 14, 2006.

Running Tests

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:

nosetests

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.