Execute SpecFlow specifications (.feature files) without compilation

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
  1. 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.

+5
source share
1 answer

You are talking about SpecFlow.exe;)

There are actually several steps, and I wrote about this using MsTest about a year ago .

The main steps:

  • Use SpecFlow.exe (with generateall key) to generate tests from .feature files.
  • . MsTest, NUnit .
  • SpecFlow.exe( mstestexecutionreport ) .

batfiles,

.

+2

All Articles