-
Notifications
You must be signed in to change notification settings - Fork 261
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
Test methods in a base class defined in a different assembly are not navigable in Test Explorer #163
Comments
From @AbhitejJohn
|
From @ajryan
|
From @AbhitejJohn
|
From @ajryan
|
From @AbhitejJohn
|
From @ajryan
|
From @AbhitejJohn
|
Sorry for going dark on this. Pushing PlatformServices.NetCore up to NetStandard1.5 makes it incompatible with its NuGet dependency Microsoft.TestPlatform.ObjectModel. v11 What are the implications of PlatformService.NetCore moving up to Microsoft.TestPlatform.Objectmodel v15? The alternative is only having the PlatformServices.Desktop flavor be able to correctly navigate to other-assembly base class methods. |
@ajryan: It looks like the new PlatformServices.NetCore.csproj has a conditional target fallback. Please remove the condition element in the below
so it reads like below
|
Ah, that did it! Wow, never heard of Just adding some tests. |
This has been fixed in the 1.1.18 release of the Framework/Adapter pair. Here are the release notes. |
I am still unable to get this feature to work even after adding the setting to the runsettings file. This is in Visual Studio 2017. I am using MS Test v2 v 1.4.0 Is any other setup needed? |
@paulmccormack : We request you not to raise concerns on closed issues, we don't monitor them. Please create a new issue with details if you need our assistance. |
Description
After turning on
EnableBaseClassTestMethodsFromOtherAssemblies
fixed in #23, new tests defined in the base class start appearing in the Test Explorer. These tests show up under the External node in Test Explorer instead of the derived project. This is happening because the DIA source information logic is searching for these methods in the derived assembly and cannot find it.Steps to reproduce
Add the following runsettings
BaseTest
class and another with aDerivedTest
class with theDerivedTest
extendingBaseTest
.DerivedTest
.BaseTest
tests.Expected behavior
The user should be taken to the tests definition.
Actual behavior
Nothing happens.
The text was updated successfully, but these errors were encountered: