标签Protractor + Jasmine来运行套件 [英] Tags Protractor + Jasmine to run set of suites
问题描述
我正试图找出一种以同样的方式使用的方法,或者更好地说,类似的方式, cucumberJS
的标记选项与量角器
,但是使用 Jasmin
e,有没有办法标记不同的场景,例如: @smoke
, @regression
等等。然后告诉控制台运行那些?
I'm trying to figure out a way to use in the same way, or better said, similar way, the tagging options that cucumberJS
has with protractor
, but with Jasmin
e, is there a way to tag the different scenarios, like: @smoke
, @regression
, etc.. and then tell on console to run with those?
我拒绝使用 Cucumber
,因为它的支持似乎变得不稳定!
I'm declining to use Cucumber
, since it's support it's seems to be getting flaky!
我们非常感谢任何帮助!
Any help will be much appreciated!
推荐答案
替代 grep
将使用 suites
:
Alternative to grep
would to be to use suites
:
suites: {
smoke: [
"spec1.js",
"spec2.js",
"spec3.js"
],
regression: [
"spec4.js",
"spec5.js",
],
}
然后,运行量角器指定套件
参数:
Then, run protractor specifying the suite
argument:
protractor conf.js --suite smoke
protractor conf.js --suite regression
protractor conf.js --suite smoke,regression
这篇关于标签Protractor + Jasmine来运行套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!