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
Getting VSProjectLoader extension as part of dotnet-nunit CLI #1333
Comments
You may want to try the full NUnit console runner rather than the dotnet tool version, which is more limited. The full runner executes under the .NET Framework, but launches processes as needed to run under .NET Core. The dotnet tool runs under .NET Core 6.0 and runs tests in-process. Although it supports extensions, most extensions have not been rewritten to run in a .NET Core process. |
@CharliePoole Thanks for your response. But with the console runner I would have to modify my Visual Studio project files would I not? The advantage of having a full featured dotnet tool is that it doesn't force the user to modify individual files. |
Please explain. You haven't said why you believe you would need to modify your project files and I can't think of a reason. That said, I can't guarantee that the VS Project Loader extension will work with your project files, since it has not been updated for a while. The easiest way to find out is just to try to run the tests using it. |
This is the full NUnit console runner, if I'm not mistaken. It looks like that's installed using If I'm working on a thirdparty code base and want to test it, I'd rather not have to change the project files like that. |
OK, I see that is confusing. Of course the "how to install" info on nuget doesn't tell you anything about how to install a tool outside of nuget. All the nuget approaches modify the project. My favorite approach for a global install of the console runner is to use chocolatey. Both the runner and the supported extensions are available on chocolatey.org. If you have chocolatey installed, just use In addition, if you look at the project releases on github, you will also find |
I recently installed the Nunit console runner as follows:
It seems to work fine, but it also requires me to manually list out the files containing the tests which is a bit of a disappointment. I was hoping that it would have some built-in automatic test discovery.
On the other hand, I notice there are extension points on it, and one of the extensions appears to be
NUnit.Extension.VSProjectLoader
.However when I tried to install this as a
dotnet
tool I get an error:Is there a way to get this extension as part of a global install of the
dotnet-nunit
CLI tool? I would prefer not to modify my source code.Thanks
The text was updated successfully, but these errors were encountered: