specflow - 获取 specflow 中所有可能步骤的命令

标签 specflow

在 Visual Studio 中,当我输入特征文件时,如果该步骤尚不存在,它会突出显示。我想知道是否有可以在命令行中为 specflow 项目编写的命令,它可以为我提供已存在的所有步骤的列表?

最佳答案

您正在寻找步骤定义报告。 查看它的文档 here :

specflow.exe stepdefinitionreport <YourPorjectName>.csproj
  • Steps with a red background are steps that exist in the automation layer but are not used in any feature files.
  • Steps with a yellow background are steps that exist in a feature file but do not have a corresponding definition.
  • Steps without a special backgrounds are steps that exist both in feature files and the automation layer. Ideally, all your steps are like this.

关于specflow - 获取 specflow 中所有可能步骤的命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43371875/

相关文章:

c# - 如何使用 MSTest 从命令行运行 SpecFlow 场景?

cucumber - 我在哪里可以找到如何最好地使用 Gherkin 标签?

c# - SpecFlow 错误 : One or more step definitions are not implemented yet

c# - 使用 Specflow 运行流程时出现 InvalidOperationException

c# - Protractor 结合 SpecFlow、Selenium 和 C#

c# - 如何使用 C# 处理 selenium 中的 Ad On

c# - Specflow - 带有数据表的场景轮廓

asp.net - 用于集成测试 asp.net 应用程序的不同资源文件

specflow - 规范运行器 : Test Method getting called twice

c# - 在 SpecFlow 中,如何在步骤/功能之间共享数据?