[英]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.