Skip to content

Conversation

@drewnoakes
Copy link
Member

This was flagged in microsoft/VSProjectSystem#328, and further investigation suggests the capability should be TestContainer rather than UnitTestContainer.

It may be that this ItemGroup is unneeded altogether. I'm following up with the unit testing team.

This was flagged in microsoft/VSProjectSystem#328, and
further investigation indicates the capability should be `TestContainer` rather
than `UnitTestContainer`.
@sharwell
Copy link
Contributor

@drewnoakes drewnoakes marked this pull request as ready for review February 1, 2020 00:47
@drewnoakes drewnoakes requested a review from a team as a code owner February 1, 2020 00:47
@shyamnamboodiripad
Copy link
Contributor

shyamnamboodiripad commented Feb 3, 2020

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.

Copy link
Contributor

@shyamnamboodiripad shyamnamboodiripad left a 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...

@AbhitejJohn
Copy link
Contributor

Yup, I was just talking to @jfleisher about this. We just need the TestContainer check. UnitTestContainer capability seems to be a roslyn only thing. I dont know if any other infra tooling depends on that but from a Test Explorer perspective this change LGTM.

@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Feb 4, 2020
@drewnoakes
Copy link
Member Author

@jasonmalinowski is there any reason I shouldn't merge this?

@jasonmalinowski
Copy link
Member

jasonmalinowski commented Feb 11, 2020

So how confident are we that something else than the Test Explorer don't depend on this flag? Where did it originally come from?

@drewnoakes
Copy link
Member Author

Looks like @sharwell added it in 1d7c848.

I have found no reference to UnitTestContainer capability anywhere, and @jfleisher confirmed that TestContainer is the expected capability, which is added by targets in unit test packages anyway.

@drewnoakes drewnoakes merged commit 3b88f61 into dotnet:master Feb 13, 2020
@drewnoakes drewnoakes deleted the fix-test-container-capability branch February 13, 2020 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants