reqnroll / Reqnroll

Open-source Cucumber-style BDD test automation framework for .NET.
https://reqnroll.net
BSD 3-Clause "New" or "Revised" License
302 stars 33 forks source link

Duplicate 'Xunit.TestFramework' attribute #177

Closed travbeamo closed 2 weeks ago

travbeamo commented 3 weeks ago

Reqnroll Version

2.0.3

Which test runner are you using?

xUnit

Test Runner Version Number

2.8.1

.NET Implementation

.NET 8.0

Test Execution Method

Visual Studio Test Explorer

Content of reqnroll.json configuration file

No response

Issue Description

When using both of the following packages:

The following error is generated when trying to build project in Visual Studio:

Duplicate 'Xunit.TestFramework' attribute

Related Xunit Issue: https://github.com/xunit/xunit/issues/2949

Steps to Reproduce

  1. Add nuget package Meziantou.Xunit.ParallelTestFramework: Version=2.2.0
  2. Add nuget package Reqnroll.xUnit: Version=2.0.3
  3. Build Project

Link to Repro Project

No response

ajeckmans commented 3 weeks ago

We use a custom xunit test framework to run the scenarios. If you use another library that does the same thing you will get this error as you can have only one custom test framework registered per project.

Unfortunately this is a by-design kind of thing.

Also, currently you won't be able to run the scenarios in parallel anyways, except for on the feature level. We are working hard on making that possible.

gasparnagy commented 2 weeks ago

Closing this issue as "by design". If something comes up, please reopen.