简体   繁体   中英

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

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.

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM