-
Notifications
You must be signed in to change notification settings - Fork 291
Move IDataConsumer from Microsoft.Testing.Platform.Extensions.TestHost to Microsoft.Testing.Platform.Extensions namespace #6035
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
Conversation
|
@copilot Please target rel/4.0 branch |
Microsoft.Testing.Platform.Extensions.TestHost.IDataConsumer should be defined inside the Microsoft.Testing.Platform.Extensions
I've created a new branch |
|
@Evangelink @MarcoRossignoli |
…t to Microsoft.Testing.Platform.Extensions namespace Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
a3b990c to
89ad4a8
Compare
I've moved
The changes are in commit 0106db1. |
src/Platform/Microsoft.Testing.Platform/Hosts/TestFrameworkBuilderData.cs
Outdated
Show resolved
Hide resolved
src/Platform/Microsoft.Testing.Platform/Messages/AsynchronousMessageBus.cs
Outdated
Show resolved
Hide resolved
src/Platform/Microsoft.Testing.Platform/Messages/BaseMessageBus.cs
Outdated
Show resolved
Hide resolved
…ensions.TestHost Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
|
…tensions.TestHost Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
…ensions.TestHost in AbortForMaxFailedTestsExtension.cs Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Removed the unnecessary using statement for Microsoft.Testing.Platform.Extensions.TestHost from AbortForMaxFailedTestsExtension.cs in commit 536f0e9. |
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
The
IDataConsumerinterface was previously located in theMicrosoft.Testing.Platform.Extensions.TestHostnamespace and inherited fromITestHostExtension, which limited its usage to TestHost-specific implementations. SinceIDataConsumercan be implemented in other hosts as well, this PR moves it to the rootMicrosoft.Testing.Platform.Extensionsnamespace.Changes Made
1. Interface Location and Inheritance
IDataConsumer.csfromsrc/Platform/Microsoft.Testing.Platform/Messages/tosrc/Platform/Microsoft.Testing.Platform/Extensions/Microsoft.Testing.Platform.Extensions.TestHosttoMicrosoft.Testing.Platform.ExtensionsITestHostExtensiontoIExtensionto make it available for other hosts2. Updated References
Updated all source files, test files, and sample files to use the new namespace:
using Microsoft.Testing.Platform.Extensions;statements where needed3. Public API Changes
Updated
PublicAPI.Shipped.txtto reflect the new namespace:Benefits
IDataConsumercan now be implemented in any host type, not just TestHostBreaking Changes
This is a breaking change for consumers who directly reference the old namespace. However, the interface contract and functionality remain identical - only the namespace import needs to be updated.
Fixes #3354.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.