Any SpecFlow / Reqnroll users know how to get the Cucumber extension to read binaries? #2193
Replies: 1 comment 3 replies
-
I'm not too familiar with .Net or the VSCode plugin so take this answer for what it is. To wit, the Cucumber VSCode plugin uses tree-sitter to find the step definitions in a source files. As .Net packages are distributed as binaries, I don't think tree sitter could scan these. But I also don't know what other means are available to discover step definitions for .Net that could work off dependencies. If anything you may want to file a feature request for the VS Code plugin and may also want to ask at https://github.com/orgs/reqnroll/discussions. Though given that building and maintaining IDE plugins is fairly complicated and time consuming I would not expect too much. |
Beta Was this translation helpful? Give feedback.
-
I'm unfamiliar with the usages in other languages with Cucumber directly, but SpecFlow (now Reqnroll) has a specflow.json/reqnroll.json file that allows you to specify binaries that your steps are located at in addition to your current binary. It seems that the Cucumber VS Code extension expects your steps to be all in your current workspace. We leaned really hard into NuGet package pattern of storing shared steps that are helpful across multiple testing solutions and now we have a new member using a MacBook without access to Rider. That leaves VS Code, but almost half of the steps on the feature files are marked as undefined because they are from the shared NuGet package steps. The tests run fine of course, but it's going to be really hard to on-board them with this setup. We can "un-roll" our shared steps pattern, but that's going to lead to maintenance concerns. Any recommendations? I tried diving into the "glue" setting but I could only see patterns for declaring files and not packages. I'm not familiar enough with Cucumber as a direct product to know if this is a ridiculous request, or if this is something other languages take advantage of or not (like with NPM, Maven, gemfiles, etc)
Beta Was this translation helpful? Give feedback.
All reactions