-
Notifications
You must be signed in to change notification settings - Fork 255
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
Allow test framework to take ownership of the banner #2919
Conversation
...tform/Microsoft.Testing.Platform/Capabilities/TestFramework/IBannerMessageOwnerCapability.cs
Outdated
Show resolved
Hide resolved
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.
I'll extract some of the refactoring to a different PR
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.
In ServerTestHost.cs line 393 we should not create the capability again but reuse the one inside the service provider. To avoid to lose states between instances and have a singleton one for all the executions.
src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs
Outdated
Show resolved
Hide resolved
# Conflicts: # src/Platform/Microsoft.Testing.Platform/Hosts/ConsoleTestHost.cs # src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs
...tform/Microsoft.Testing.Platform/Capabilities/TestFramework/IBannerMessageOwnerCapability.cs
Show resolved
Hide resolved
src/Platform/Microsoft.Testing.Platform/Services/IPlatformInformation.cs
Show resolved
Hide resolved
src/Platform/Microsoft.Testing.Platform/Services/IPlatformInformation.cs
Show resolved
Hide resolved
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.
It would be good add the list of public capabilities here https://github.com/microsoft/testfx/blob/main/docs/testingplatform/Index.md under the 4 point
Fixes #2657