-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Labels
Help-WantedThe issue is up-for-grabs, and can be claimed by commentingThe issue is up-for-grabs, and can be claimed by commenting
Description
Pulled this out of #23.
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
<RunSettings>
<MSTest>
<EnableBaseClassTestMethodsFromOtherAssemblies>true</EnableBaseClassTestMethodsFromOtherAssemblies>
</MSTest>
</RunSettings>
- Create two test projects - one with a
BaseTest
class and another with aDerivedTest
class with theDerivedTest
extendingBaseTest
. - Add test methods in both the classes.
- Discover tests from the project containing
DerivedTest
. - Double click the
BaseTest
tests.
Expected behavior
The user should be taken to the tests definition.
Actual behavior
Nothing happens.
Metadata
Metadata
Assignees
Labels
Help-WantedThe issue is up-for-grabs, and can be claimed by commentingThe issue is up-for-grabs, and can be claimed by commenting