-
Notifications
You must be signed in to change notification settings - Fork 26
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
NunitXml.TestLogger not recognized with --logger:nunit #23
Comments
I managed to consume NunitXml.TestLogger by using Is this the intended setup? This is what the test csproj looks like:
Using nuget to install it directly only works on Windows. |
Linux produces the same error: |
I have been able to pinpoint what is causing issues.
It doesn't appear to be compatible with --no-build --no-restore. |
The logger assemblies are copied to output directory of project in build step (via https://github.com/Faizan2304/LoggerExtensions/blob/master/nuspec/NunitXml.TestLogger.props). I think this step didn't run with Is the intention to run |
The test project csproj looks right. It should contain a reference to logger package. |
The particular library I am testing with this test project targets both What this means for me is that I cannot use So what I have going on is
I have tested doing this:
What I am currently doing until we can make progress is:
It allows me to leverage the results for things like Xray and Sonar based on the |
Thanks for sharing more context. Can you share the logs from below step? Let's see if mono's msbuild includes the logger nuget package props files in the build process.
|
I encountered the same problem.
Here's how I fixed the issue:
Now everything works:
|
also no --no-restore as per spekt/nunit.testlogger#23 (comment)
Closing old issue. |
dotnet test --test-adapter-path:. --logger:nunit
Could not find a test logger with AssemblyQualifiedName, URI or FriendlyName 'nunit'.
The text was updated successfully, but these errors were encountered: