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 1 (modified by Karl Guertin, 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 exceute these methods as test cases.

_nose : http://somethingaboutorange.com/mrl/projects/nose/

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.

nose usage documentation : http://somethingaboutorange.com/mrl/projects/nose/#usage

Docutils System Messages

System Message: ERROR/3 (<string>, line 7); backlink

Unknown target name: "nose".