SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.24k stars 754 forks source link

Specflow+xUnit Parallel Execution on scenario level #2646

Closed pro-pintuyadav closed 2 years ago

pro-pintuyadav commented 2 years ago

SpecFlow Version

3.9.74

Which test runner are you using?

xUnit

Test Runner Version Number

Specflow.xUnit 3.9.74

.NET Implementation

.NET 6.0

Project Format of the SpecFlow project

Classic project format using <PackageReference> tags

.feature.cs files are generated using

SpecFlow.Tools.MsBuild.Generation NuGet package

Test Execution Method

Visual Studio Test Explorer

SpecFlow Section in app.config or content of specflow.json

No response

Issue Description

We have 2000 Scenarios in more than 20 feature file. We are using a Specflow+Runner to run test cases in parallel in scenario level. As Specflow+Runner has been retired. We are working on migration from Specflow+Runner to Specflow+xUnit as https://docs.specflow.org/projects/specflow-runner/en/latest/Migration/migratingspecrunrst.html .

How to implement scenario level parallel execution with Specflow+xUnit.

Steps to Reproduce

Add two scenarios in feature file.

Link to Repro Project

No response

pro-pintuyadav commented 2 years ago

Hi @SabotageAndi,

Looking for your input .

SabotageAndi commented 2 years ago

@pro-pintuyadav You can't do scenario-level parallel execution as it is not supported.

You can find more details about it here: https://github.com/SpecFlowOSS/SpecFlow/issues/2225

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.