-
Notifications
You must be signed in to change notification settings - Fork 331
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
GoogleTestAdapter: VsTestConsole can not be used with settings any more since VS 15.5 #1652
Comments
@csoltenborn Below diff should fix the issue. I will raise PR to fix this ASAP. diff --git a/src/Microsoft.TestPlatform.Common/SettingsProvider/SettingsProviderExtensionManager.cs b/src/Microsoft.TestPlatform.Common/SettingsProvider/SettingsProviderExtensionManager.cs
index 44c5c07d..f855cb4b 100644
--- a/src/Microsoft.TestPlatform.Common/SettingsProvider/SettingsProviderExtensionManager.cs
+++ b/src/Microsoft.TestPlatform.Common/SettingsProvider/SettingsProviderExtensionManager.cs
@@ -115,7 +115,7 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.SettingsProvider
TestPluginManager.Instance
.GetSpecificTestExtensions<TestSettingsProviderPluginInformation, ISettingsProvider, ISettingsProviderCapabilities, TestSettingsProviderMetadata>(
- TestPlatformConstants.SettingsProviderEndsWithPattern,
+ TestPlatformConstants.TestAdapterEndsWithPattern,
out unfilteredTestExtensions,
out testExtensions); This has been reported from multiple sources making it P1.
Related issue #1545 |
Sounds great, thanks in advance! Should have created this issue (much) earlier. As an excuse, there were a couple of MS guys who knew about csoltenborn/GoogleTestAdapter#184... Now I know why you wanted to see the size of the pull resulting from your issue ;-) |
I found workaround while fixing the issue. Please use |
I finally wanted to disable the workaround for this bug (I provided the possibility to specify the settings file via an env variable, from which the settings would be loaded if the bug occured), but found out that two of my end-to-end tests are still having the same problem. Since I'm having difficulties identifying the differences to the non-failing tests (the end-to-end tests are generated and are thus very similar), I would like to ask you to have a look at it if possible? Maybe the bug did not get solved completely... Reproducing the issue is fairly easy:
|
This issue is the VS Test equivalent of csoltenborn/GoogleTestAdapter#184
Steps to reproduce
VsTest.Console.exe
from VS installation >= 15.5/TestAdapterPath
or/UseVsixEstensions
options (for the latter, of course first install GTA into VS)/Settings
option to provide a run settings fileSampleTests
solution of GTA can serve as examples for tests to be run and also contains some run settings files, but that might not even be necessarySee also csoltenborn/GoogleTestAdapter#184 for more detailed reproduction instructions and some more insights. You can also reproduce (and debug) the behavior by running GTA's end-to-end tests (which use
VsTest.Console.exe
internally). See wiki for build instructions.Expected behavior
Settings are found and provided to GTA at runtime.
Actual behavior
Settings are not loaded any more since VS 15.5. Instead, an exception occurs, message: "Problem loading settings: Settings Provider named 'GoogleTestAdapterSettings' was not found. The settings can not be loaded."
There is no relevant log output afaik.
Other notes
ListDiscoverers
,ListExecutors
, andListSettings
options do not work anymore as well.The text was updated successfully, but these errors were encountered: