繁体   English   中英

SpecRun.exe:从命令行运行 .feature 或 .playlist 文件

[英]SpecRun.exe: run .feature or .playlist file from command line

再会。 我有几个 .feature 文件:

1.功能

2.特征

1.播放列表

2.播放列表

等等。

我可以在 Visual Studio 中分别运行它们:

- 调试模式下的任何功能文件

- 任何带有测试资源管理器的播放列表。

但是如果我需要从命令行运行其中之一,我应该怎么做?

如果我使用SpecRun.exe运行

SpecRun.exe run %profile%.srprofile "/baseFolder:%~dp0\\bin\\Debug" /log:specrun.log

这将在所有 .feature 文件中启动所有场景。

在此处查看 SpecRun.exe 的命令行开关http://specflow.org/plus/documentation/SpecFlowPlus-Runner-Command-Line/

您正在寻找 /filter 将您的执行过滤到单个场景。 它的格式记录在此处: http : //specflow.org/plus/documentation/SpecFlowPlus-Runner-Profiles/#Filter

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM