-
Notifications
You must be signed in to change notification settings - Fork 51
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
With NUnit 4.x, "Only static OneTimeSetUp and OneTimeTearDown are allowed for InstancePerTestCase mode" #379
Comments
While I work on the smaller reproduction, some information that may help -- It looks like in I'm not sure if this is intended, but it conflicts with the NUnit default, which according to the docs is Because this assembly-level attribute is set, I think my tests are picking up the non-default behavior and NUnit is therefore expecting them to adhere to the |
You can find a basic reproduction at https://github.com/sct-software/Reqnroll-379-reproduction There are two tags -- the commit prior to the issue being introduced, and then adding Reqnroll.NUnit which introduces the issue. The current commit on the main branch has the issue reproduced. |
An quick workaround for this is setting So I'd suggest the outcome of this issue could be:
I'm happy to do a PR for either of those. |
Thanks for the good analysis and reproduction 🙂 . This change was introduced when we supported parallel execution at the scenario/method level (see #277). We could fix this by adding the |
Sounds good, I'll do the PR for it, today if I can. Not mad if anyone beats me to it :) |
Reqnroll Version
2.2.1
Which test runner are you using?
NUnit
Test Runner Version Number
4.3.2
.NET Implementation
.NET 9.0
Test Execution Method
Other – PLEASE SPECIFY
Content of reqnroll.json configuration file
No file in use to my knowledge.
Issue Description
Firstly, I absolutely love the way you're stepping in to support the community with this tool and I look forward to promoting and supporting it however I can.
This seems similar to #320 except I'm still experiencing the issue after installing Reqnroll v2.2.1.
Background
SpecFlow.NUnit
andSpecFlow.Tools.MSBuild.Generation
and replacing them with the latest (2.2.1) ofReqnroll.NUnit
andReqnroll.Tools.MsBuild.Generation
.Problem
The tests that are unrelated to Reqnroll have begun to fail.
The output of these tests in that branch is now:
Steps to Reproduce
See repro project below which includes a very small reproduction project.
Link to Repro Project
https://github.com/sct-software/Reqnroll-379-reproduction
The text was updated successfully, but these errors were encountered: