Search code examples
c#specflowexecution

How to run Specflow tests one after another NOT parallel


I am running C# specflow tests from visual studio. When I run I am seeing tests are getting executed parallel. How can I make them to run one after another ? I am attaching snapshot which shows in cyan highlighted. I am looking a way to run them one after another. I am using Specflow.AssistDynamic and Techtalk.Specflowenter image description here


Solution

  • I am able to do this by adding a property to AssemblyInfo.cs

    [assembly: CollectionBehavior(DisableTestParallelization = true)]