Execute SpecFlow specs (.feature files) without compilation

前端 未结 1 1644
挽巷
挽巷 2021-02-09 00:38

I want to be able to execute given SpecFlow (Gherkin) .feature file locally without doing compilation.

So workflow would be (as a Business Analyst or a QA engineer):

1条回答
  •  梦谈多话
    2021-02-09 01:04

    You're talking about SpecFlow.exe ;)

    Actually there's a few steps involved and I blogged about it using MsTest about a year ago.

    The basic steps are:

    1. Use SpecFlow.exe (with switch generateall) to generate tests from the .feature files.
    2. Run tests and create a report. In my example i'm using MsTest but NUnit will work just fine.
    3. Use SpecFlow.exe again (with switch mstestexecutionreport in my case) to generate the report.

    You are more than welcome to use my batfiles if you want

    Good luck

    0 讨论(0)
提交回复
热议问题