【发布时间】:2015-03-25 13:24:08
【问题描述】:
在 Python 和nosetests 测试框架中有tagging your tests 这个想法:
from nose.plugins.attrib import attr
@attr(speed='slow')
def test_big_download():
...
并运行只有特定标签的测试:
nosetests -a speed=slow
当需要运行特定类别或类型的测试时,这非常有用。
protractor + jasmine有类似的吗?
我发现最接近的功能是1.6.0 中引入的'grep' option:
protractor conf.js --grep='pattern to match'
【问题讨论】:
-
标签是最接近的,因为 js 中没有注释。
标签: python testing jasmine protractor nose