【发布时间】:2016-01-06 13:34:47
【问题描述】:
我有一些测试,例如:
@attr('sanity', 'someothertag')
def test_this_important_feature(self):
"""Comment - Verify the very imporant feature
我想知道是否有办法从测试内部查看测试的属性。或者(可能最好),有没有办法将每个测试的属性链接到 Nose 找到的每个测试?对于上面的例子,它会是这样的:
test_this_important_feature: ('sanity','someothertag')
我运行所有这些测试并使用 nose.run(configuration) 捕获结果 - 结果是否能够包含每个测试的属性?
【问题讨论】:
标签: python unit-testing nose