-
Notifications
You must be signed in to change notification settings - Fork 71
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 is unable to take any input from xunit.runner.json #455
Comments
I think this is not related to accessing the For handling the |
@gasparnagy Thank you so much for replying. I have had a detailed look at the discussion when I was implementing parallel run with xunit using xunit.runner.json in Specflow few weeks back. Apparently xunit team have implemented a new algorithm where Now the problem in ReqnRoll is not only with For example - the below code in xunit.runner.json does not supposed executes feature files in parallel because I have made { The same code is respected by my Specflow project and it is starting one thread only as the parallelization is disabled . But the same code is not working in ReqNRoll. It is still executing all the feature files in parallel which is a default behavior of xunit. This confirms me that somehow ReqnRoll is not able to identify the xunit.runner.json file or unable to read any value from the json, not only I will try to find any other xunit settings which is not related to parallel but as of now there is no such feature in my project which requires any other settings file from xunit. If I get any, I will update here. |
Please do so. I have used xunit json config a few weeks ago and it worked for me. Reqnroll generates plain xunit test classes as code, so we don't interfere with the config handling of xunit at all. Oh. I just see the version in your issue. Unfortunately xUnit 3 is not supported yet, so maybe this is just a duplicate of #405. But I'm not sure. |
@gasparnagy the xunit runner 3 runs also xunit v2 test. @archie098 if your are using xunit v2, you may like #491. |
Reqnroll Version
2.3.0
Which test runner are you using?
xUnit
Test Runner Version Number
3.0.2
.NET Implementation
.NET 8.0
Test Execution Method
Visual Studio Test Explorer
Content of reqnroll.json configuration file
No response
Issue Description
After migrating from Specflow to ReqnRoll everything is working fine except xunit parallel thread count is not being considered from xunit.runner.json file., What it looks to me is ReqnRoll project is not able to recognize the file. It used to work perfectly fine with Specflow.
This is the content of the json file which is placed in the project directory and used to work fine with Specflow. It used to open only 4 thread.
{
"parallelizeAssembly": true,
"parallelizeTestCollections": true,
"maxParallelThreads": 4,
"parallelAlgorithm": "aggressive"
}
Even if I specify the number here, all the feature files are starting to run in paralle.
Steps to Reproduce
This is my project file -
net8.0 enable enable all runtime; build; native; contentfiles; analyzers; buildtransitiveI am running test via VS Test Explorer.
Link to Repro Project
No response
The text was updated successfully, but these errors were encountered: