SpecFlow - Find all scenarios from method step and Find all unimplemented steps

有些话、适合烂在心里 提交于 2019-12-12 10:23:34

问题


New to SpecFlow.

When specs project become larger, organizing files and refactoring Given/When/Then string become troublesome.

  1. How to find Scenarios in feature file from method step. Sometimes I have a steps shared in a few scenarios and features but from the C# step method view how to 'Find All References' in feature file?
  2. How to get all unimplemented scenario steps (font color purple) in all features files so that I can implement the steps. Currently when I Run All tests, no warn about unimplemented steps left.

回答1:


Beginning with version 1.9, SpecFlow supports these things (refer to What's new in v1.9):

  • ad 1.: Context menu in step definition: "Go To SpecFlow Step Definition Usages" (shortcut Ctrl+Shift+Alt+S):
  • ad 2.: Context menu in feature file: "Generate Step Definitions"


来源:https://stackoverflow.com/questions/18000125/specflow-find-all-scenarios-from-method-step-and-find-all-unimplemented-steps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!