-
Notifications
You must be signed in to change notification settings - Fork 641
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
Use full test name in NUnit tests, #923 #1086
Conversation
A couple of things:
|
I'll add in the failure message to print the class name. This fails currently on ADO, wrong path to the runsettings file. I'll replace this with command-line args which will solve the problem. I think it's worthwhile to have it in the test log output and trx file too, not just in the failure message. |
Fair enough. I would like to see what the UX looks like without the extra info in the log file, though. Could we make this a parameter that defaults to enabled if not supplied in ADO that allows it to be disabled in a specific ADO pipeline? For example, the properties that are documented at the top of the |
Updated to remove the runsettings file; pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good and I can confirm they work as expected.
There is a bit of extra time used to both log and upload the test results, but it is only around 5%. That being said, I will be configuring the environments I use to disable this feature. The logs are only the secondary way to view the test results and it isn't worth the extra time for me. There are still many things we can do to improve performance on ADO, though (like request more parallel agents, upload the test results in the background in parallel, and start testing NuGet packages so we can skip dotnet publish
).
The effect on GitHub Actions is far less noticeable because it only uploads the files as artifacts without also pushing them to an API. Not to mention, there are far more build agents working in parallel to minimize the time it takes to run.
Uses the full test name in NUnit tests, so that it's clear where inherited tests come from.
Fixes #923
Description
This outputs the full test name including namespace and class name in the GitHub, Azure DevOps, and local build scripts for the log output as well as the trx files.