How do I run a single test with Nose in Pylons

后端 未结 6 1382
星月不相逢
星月不相逢 2021-01-29 23:09

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

6条回答
  •  Happy的楠姐
    2021-01-29 23:43

    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).

提交回复
热议问题