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

NUnit Console and NUnit Console Runner version 3.17.0 error when running tests vis command line on Mac #1387

Closed
Moshex opened this issue Feb 15, 2024 · 6 comments
Assignees
Labels
Milestone

Comments

@Moshex
Copy link

Moshex commented Feb 15, 2024

When running this command on NUnit Console and NUnit Console Runner version 3.17.0:

mono ../../../.nuget/packages/NUnit.ConsoleRunner/3.17.0/tools/nunit3-console.exe --labels=Before --out=TestResult.txt "--result=TestResult.xml;format=nunit2" ./project.csproj --trace=Verbose;

I get the following error:

Error : /Users/{username}/Documents/project/project/bin/Debug/net6.0/project.dll
System.ArgumentException : The netcore-6.0 framework is not available.
Available frameworks: mono-4.0
--ArgumentException
The netcore-6.0 framework is not available.
Available frameworks: mono-4.0
  at NUnit.Engine.Services.TestAgency.GetAgent (NUnit.Engine.TestPackage package) [0x0008e] in <98a5d354480145bf8bc83cc74d63f414>:0 
  at NUnit.Engine.Runners.ProcessRunner.CreateAgentAndRunnerIfNeeded () [0x0003d] in <98a5d354480145bf8bc83cc74d63f414>:0 
  at NUnit.Engine.Runners.ProcessRunner.RunTests (NUnit.Engine.ITestEventListener listener, NUnit.Engine.TestFilter filter) [0x0001f] in <98a5d354480145bf8bc83cc74d63f414>:0 

When I downgrade to NUnit Console and NUnit Console Runner version 3.16.3 This error does not occur and the command works as expected.

Is there a change that I need to make for NUnit Console and NUnit Console Runner version 3.17.0?
Thank you for any information!

@OsirisTerje
Copy link
Member

We have not ported all fixes from the 3.16 branch yet, so it might be one of those that prevents this. The 3.17 comes off the 3.15, and the 3.16 has some other issues (crashes) we want to avoid.

And, we lack human resources to speed these fixes up.

@Moshex
Copy link
Author

Moshex commented Feb 22, 2024

okay, thanks for the heads up!

@Moshex
Copy link
Author

Moshex commented Mar 4, 2024

@OsirisTerje
After a little more testing it seems the only version in the Nunit.Console and Nunit.ConsoleRunner that works is version 3.16.3, so I am guessing there is a fix in that version for this compared to version 3.16.2. That may help in the next version of 3.17.
I hope this helps!

@OsirisTerje
Copy link
Member

@Moshex If you have the time to figure out which change that may be , we can get it over. It is "Just" some detective work ;-)

@Moshex
Copy link
Author

Moshex commented May 15, 2024

@OsirisTerje
My guess based off the error is it would be this fix:
#1317

but it could be:
#1307

@Bartleby2718
Copy link

@OsirisTerje Could you take a look at the linked PR please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants