I've been trying to use the NUnit Xml Test Logger (that can be found here: https://www.nuget.org/packages/NUnitXml.TestLogger/) to format the results from my dotnet test command in Xml, so that they can be interpreted by the Jenkins NUnit plugin. My issue however, is that I'm unsure of how you're actually supposed to install it, and if it is even possible to avoid adding the package to every test project.
The official documentation from the package's repository page (that can be found here: https://github.com/spekt/nunit.testlogger) says that the test project should contain a reference to the NUnit Xml Test Logger, but adding it in one of my test projects in Visual studio then running tests using the command dotnet test --logger:nunit will return the error Could not find a test logger with AssemblyQualifiedName, URI or FriendlyName 'nunit'.
Considering my tests will be ran through the Jenkins pipeline using the NetCore plugin dotnetTest command (which is equivalent to dotnet test in Powershell), what would be the expected installation process for the NUnit Xml Test Logger plugin so that every test can be ran and formatted in NUnit xml?
Thanks a lot! Any help is greatly appreciated!