-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Use correct project capability for test projects #41334
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
Use correct project capability for test projects #41334
Conversation
This was flagged in microsoft/VSProjectSystem#328, and further investigation indicates the capability should be `TestContainer` rather than `UnitTestContainer`.
|
This ItemGroup is unnecessary because it's set here: |
|
Tagging @AbhitejJohn who may know some historical context around the right capability name. But "TestContainer" seems to be what we rely on for the test explorer at the moment. See this check. |
shyamnamboodiripad
left a comment
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.
I think this should work. To test this you could clean out your .vs folder and make sure that tests are still discovered after building a test project in the sln...
|
Yup, I was just talking to @jfleisher about this. We just need the |
|
@jasonmalinowski is there any reason I shouldn't merge this? |
|
So how confident are we that something else than the Test Explorer don't depend on this flag? Where did it originally come from? |
|
Looks like @sharwell added it in 1d7c848. I have found no reference to |
This was flagged in microsoft/VSProjectSystem#328, and further investigation suggests the capability should be
TestContainerrather thanUnitTestContainer.It may be that this
ItemGroupis unneeded altogether. I'm following up with the unit testing team.