I have a Pylons 1.0 app with a bunch of tests in the test/functional directory. I\'m getting weird test results and I want to just run a single test. The nose documentation say
nosetests appname.tests.functional.test_controller
should work, where the file is named test_controller.py
.
To run a specific test class and method use a path of the form module.path:ClassNameInFile.method_name
, that is, with a colon separating the module/file path and the objects within the file. module.path
is the relative path to the file (e.g. tests/my_tests.py:ClassNameInFile.method_name
).