用黄瓜运行量角器时如何只运行一个特征文件? [英] How to run only one feature file when running protractor with cucumber?
本文介绍了用黄瓜运行量角器时如何只运行一个特征文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有多个功能文件,我真的很想只运行一个文件、一个场景或一个标签.我知道我只能在我的 CucumberConf.js 中的规范中提供一个文件,但我想运行一次而不需要摆弄我的 CucumberConf.js.运行量角器时需要输入哪些参数?
I have multiple feature files and I would really love to run just one file or just one scenario or just one tag. I know I could just provide one file in my specs in my cucumberConf.js, but I would like to run it once without fiddling with my cucumberConf.js. Which arguments do I need to type in when running protractor?
推荐答案
最简单的方法是使用 --specs
选项.
The easiest way to do this would be to use the --specs
option.
量角器 --specs=specs/testA.js e2e-conf.js
这篇关于用黄瓜运行量角器时如何只运行一个特征文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文