Test explorer tree view groups [Theory] attributed tests differently
See original GitHub issueI have a sample unit testing project with one test class including following unit test methods; two [Fact] attributed, another two [Fact] attributed but also Skip enabled, and finally, two [Theory] attributed with both having two [InlineData].
As you can see below, the [Theory] attributed test methods are grouped differently when you run tests.
On the other hand, this is not the case when you discover tests using refresh button. I reckon, all test methods of the same test class should be grouped together regardless of [Fact] and [Theory] attributes.
P.S. This bug report also has a relation with this one #200, but addresses a different aspect the current UX. For that reason, I thought it is better to report separately.
My system information: Version: 1.33.0 (system setup) Electron: 3.1.6 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.17134 .NET Core Test Explorer: 0.6.6 .NET Core: 2.2 xUnit.net: 2.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:12

Top Related StackOverflow Question
I’ve added a known issue for this and will close this in the mean time. Thanks a lot for your help in fleshing this out @kahveci and @MatthewS2077
@stefanforsberg after your message, I tried a couple of different scenarios and managed to find the root cause I guess. Simply, your test class namespace must match with the assembly name. My assembly name is
Playgroundx.LogAn.Testswhile the namespace isPlaygroundx.LogAn. I changed the test class namespace asPlaygroundx.LogAn.Tests, and the problem solved as follows. Hope this helps fixing the issue.