How do I run a single test with Nose in Pylons

后端 未结 6 1332
星月不相逢
星月不相逢 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条回答
  •  醉酒成梦
    2021-01-29 23:51

    For me using Nosetests 1.3.0 these variants are working (but make sure you have __init__.py in your tests folder):

    nosetests [options] tests.ui_tests
    nosetests [options] tests/ui_tests.py
    nosetests [options] tests.ui_tests:TestUI.test_admin_page
    

    Note that single colon between module name and class name.

提交回复
热议问题