在 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/