Closed kwaazaar closed 1 month ago
When targeting .NET 8, suddenly it works.
@kwaazaar Strange.
Based on the logs it seems that on Reqnroll side everything is fine: build passes and even VS extension is able to process the step definitions. The error you receive is from the test runner, which should see the Reqnroll project as a standard xUnit project...
This might be even some initial version/fw confusion problem. I sometimes have that with other projects as well.
What happens if you change it back now to .NET 6?
If the issue comes back then please try:
No luck with all those steps. Only when targeting .NET8 it works. However, the tested code does not support .NET 8 (because of old AutoMapper dependency), so I have no way forward now.
@kwaazaar Can you make a zip of your code and attach it here? (I guess it is just the std calculator example, but maybe there is something I can see.)
And one more idea: can you just try to run the tests (with .NET 6) using dotnet test
from console?
It's a 400+ projects solution. Cannot provide it. I also dont have the opportunity to take more time for this, so I created regular unittests now.
If and when you have time, can you check of a simple Reqroll project works on your machine?
Also if at all possible can you downgrade xunit to 2.4 and see if that works with .net 6?
@kwaazaar We have just released v2.0.0. You can try with that one, although I still could not reproduce the issue.
I close this ticket now, but if you have new response or feedback about it, feel free to reopen.
Reqnroll Version
1.0.0
Which test runner are you using?
xUnit
Test Runner Version Number
2.5.6
.NET Implementation
.NET 6.0
Test Execution Method
Visual Studio Test Explorer
Content of reqnroll.json configuration file
No response
Issue Description
Added new reqnroll testproject, try to run the standard Calculator test from the testexplorer window: "Aborting test due to build failures".
But the build output:
Reqnroll output window:
Reqnroll logfile does not show any problems. There are many verbose statements and this info statement:
2024-05-10T10:26:38.242+02:00, Info@455, ThenImportBindings: 4 step definitions and 0 hooks discovered for project Middleware.Cloud.Reservations.Logic.Tests
I used SpecFlow a few years back and was hoping to be able to introduce reqnroll at my current customer. But this is not a good start.
Steps to Reproduce
Added new reqnroll testproject, try to run the standard Calculator test from the testexplorer window: "Aborting test due to build failures".
Link to Repro Project
No response