Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reqnroll.xunit doesn't build when running xunit.v3 #405

Open
thatstatsguy opened this issue Jan 17, 2025 · 3 comments
Open

Reqnroll.xunit doesn't build when running xunit.v3 #405

thatstatsguy opened this issue Jan 17, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@thatstatsguy
Copy link

Reqnroll Version

2.2.1

Which test runner are you using?

xUnit

Test Runner Version Number

2.2.1

.NET Implementation

.NET 8.0

Test Execution Method

Other – PLEASE SPECIFY

Content of reqnroll.json configuration file

n/a - doesn't exist in my replication

Issue Description

Hi :)

My team work with XUnit + Reqnroll for our testing. I recently tried bumping xunit to the new v3 only to be greeted with errors relating to the IAsyncLifetime of Xunit v3. I'm aware that there have been changes as per the migration guide from xunit.

Steps to Reproduce

I took the quick start example, changed the dependencies and created a test step. This can be found at

https://github.com/thatstatsguy/ReqnRollReplication

In Rider I can see the following when running the test project

Image

If the packages aren't intended to work together, an interim step may be to enforce specific nuget versions and update the description to something other than

Package to use Reqnroll with xUnit 2.4 and later. Reqnroll is an open-source Cucumber-style BDD test automation framework for .NET. It has been created as a reboot of the SpecFlow project.

Link to Repro Project

https://github.com/thatstatsguy/ReqnRollReplication

@thatstatsguy thatstatsguy added the bug Something isn't working label Jan 17, 2025
@ajeckmans
Copy link
Contributor

You are correct. Reqnroll.xUnit targets xUnit v2. Because of the incompatibility xUnit decided to release a new package xunit.v3 instead of bumping the current one.

As for Reqnroll.xUnit, we discussed this in some other issue (or maybe discord, I don't know) and likely the best solution would be to also make a Reqnroll.xUnit.v3 package that targets the new xUnit version. I don't think this will be too much work as we're only really touching the surface of xUnit.

@ajeckmans
Copy link
Contributor

ajeckmans commented Jan 17, 2025

Note that this is not a versioning issue. When you're referencing xunit.v3 and Reqnroll.xUnit you're essentially referencing both the v2 (xunit package) and the v3 (xunit.v3 package) version of xUnit, which will definitely have conflicting type declarations.

@FerBenta
Copy link

Hi!

First of all, thanks for all your work 😄

I've started using xunit.v3 and I faced the same issue. I was wondering about the times you usually work with to have an idea of when this would be available. In addition, where could I find (if you have it, of course) a roadmap of the upcoming changes?

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants