Skip to main content

Is it possible to mix SpecFlow tests and normal unit tests in same VS project?




  • Andreas Willich

    Our recommendation is to have two projects. One project for unit tests and one for SpecFlow scenarios.

    We integrate into the test runners to be able to provide all features, and for some of them, they aren't then available for your other unit tests. Before and After TestRun hooks are an example of this.

    About which hooks are you talking exactly?

  • Marc Maurhofer

    Thank you, I suspected as much, but was hoping for some magic config setting :-)

    I will create a different project.

    It was the [BeforeTestRun] (Hooks.cs) and [OneTimeSetup] in the Nunit base test class.




Please sign in to leave a comment.

Powered by Zendesk