运行 规格(按标签)
Running specs by tag
在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'
Grep 是最接近这个的,因为 在 js 中没有注释。
在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'
Grep 是最接近这个的,因为 在 js 中没有注释。