一个nose插件,用于修复在使用详细标志(-v)时描述测试的方式
nose-descriptionfixer的Python项目详细描述
这是一个简单的nose插件,它强制noests在详细模式下打印完整的测试名称,而不仅仅是docstring。
例如,给定测试文件example.py:
classMyTestCase(TestCase):deftest_without_docstring(self):passdeftest_with_docstring(self):"""This is my docstring"""pass
此插件将nosetests -v example.py的输出从:
This is my docstring ... ok test_without_docstring (mymodule.MyTestCase) ... ok
收件人:
test_with_docstring (mymodule.MyTestCase) ... ok test_without_docstring (mymodule.MyTestCase) ... ok
使用pip install nose-description-fixer-plugin安装。