【问题标题】:Running specs by tag按标签运行规范
【发布时间】: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


【解决方案1】:

Grep 是最接近这一点的方法,因为 js 中没有注释

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-15
    • 2012-11-12
    • 1970-01-01
    • 1970-01-01
    • 2019-12-05
    • 2010-11-13
    • 2012-09-01
    • 1970-01-01
    相关资源
    最近更新 更多