I want to be able to execute a given SpecFlow (Gherkin) .feature file locally without doing compilation.
Thus, the workflow will (as a business analyst or QA engineer):
1. modify the .feature file (using a predefined dictionary of steps)
2. Run
SpecFlowSuperTool.exe
/feature:.\FoobarprojectSpecs.feature
/assembly:Foobarproject.dll,Foobarproject.Core.dll
- get report
The goal is to be able to execute a function on demand without recompiling the code if only the functions have changed.
It seems that to implement such a tool there should be a fairly simple task, since the binding of the Gherkin steps occurs at run time (judging by the NUnit code generated by SpecFlow).
I understand that the generate-> compile-> run script is already supported, but in some cases the compilation step seems unnecessary.
UPDATE
I ended up coding the tool myself. SpecFlow API is very simple, it was quite easy to build specflowrunner.exe, which would take a directory or file + configuration file, as well as execute .feature files directly, without creating unit tests at first.
source
share