-
Notifications
You must be signed in to change notification settings - Fork 323
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
Find ISettingsProvider in TestAdapter assembly #1704
Conversation
@@ -115,7 +115,7 @@ public static SettingsProviderExtensionManager Create() | |||
|
|||
TestPluginManager.Instance | |||
.GetSpecificTestExtensions<TestSettingsProviderPluginInformation, ISettingsProvider, ISettingsProviderCapabilities, TestSettingsProviderMetadata>( | |||
TestPlatformConstants.SettingsProviderEndsWithPattern, | |||
TestPlatformConstants.TestAdapterEndsWithPattern, |
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.
TestAdapterEndsWithPattern [](start = 54, length = 26)
Should we keep SetttingsProvider pattern as well, in case(extreme rare) for folks who might have used this pattern to define their ISettings
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.
Creating separate assembly for just to implement ISettingsProvider
don't give better experience for adapter authors.
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.
Can we please add tests for this change if possible ?
/// <summary> | ||
/// Pattern used to find the settings providers library using String.EndWith | ||
/// </summary> | ||
public const string SettingsProviderEndsWithPattern = @"SettingsProvider.dll"; |
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.
This will need to remain, if other comment is honored
@@ -225,7 +225,7 @@ private void AddExtensionAssemblies(string runSettings) | |||
continue; | |||
} | |||
|
|||
var extensionAssemblies = new List<string>(this.fileHelper.EnumerateFiles(adapterPath, SearchOption.AllDirectories, TestPlatformConstants.TestAdapterEndsWithPattern, TestPlatformConstants.TestLoggerEndsWithPattern, TestPlatformConstants.RunTimeEndsWithPattern, TestPlatformConstants.SettingsProviderEndsWithPattern)); | |||
var extensionAssemblies = new List<string>(this.fileHelper.EnumerateFiles(adapterPath, SearchOption.AllDirectories, TestPlatformConstants.TestAdapterEndsWithPattern, TestPlatformConstants.TestLoggerEndsWithPattern, TestPlatformConstants.RunTimeEndsWithPattern)); |
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.
This will also need to remain
Description
SettingsProvider.dll
More detailsRelated issue
#1652
#1673