Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Specflow 获取 BDD。Specflow 的问题之一是生成步骤。如果我没有步骤文件,那么它将在输出窗口中生成步骤,我可以将其添加到自定义步骤文件中。但是如果我编辑功能文件会发生什么?如何重新创建步骤?
即使您已经有一个步骤文件,SpecFlow 也会检测特征文件中没有匹配步骤定义的行,并将为这些步骤输出生成的代码。而且,如果您添加了一个仅使用现有步骤定义的新场景,那么您根本不需要接触步骤文件。