Microsoft (R) Test Execution Command Line Tool Version 16.5.0
Copyright (c) Microsoft Corporation. All rights reserved.
The following Tests are available:
Pass
Pass2
Fail
SkippedTest
Pass
AnotherPass
Fail
DataTest
BUT XUNIT do work correctly:
The following Tests are available:
XunitTests.TestClass1.Pass
XunitTests.TestClass1.PassNew
XunitTests.TestClass1.AnotherPass
XunitTests.TestClass1.Fail3
XunitTests.TestClass2.Pass
XunitTests.TestClass2.Pass2
XunitTests.TestClass2.Fail
The command (dotnet test -t) just list the method name ,rather than all qualified name .Due to this ,the "vscode-dotnet-test-explorer" (https://github.com/formulahendry/vscode-dotnet-test-explorer) can not work .
This is result of mstest/nunit:
Microsoft (R) Test Execution Command Line Tool Version 16.5.0 Copyright (c) Microsoft Corporation. All rights reserved. The following Tests are available: Pass Pass2 Fail SkippedTest Pass AnotherPass Fail DataTest
BUT XUNIT do work correctly: The following Tests are available: XunitTests.TestClass1.Pass XunitTests.TestClass1.PassNew XunitTests.TestClass1.AnotherPass XunitTests.TestClass1.Fail3 XunitTests.TestClass2.Pass XunitTests.TestClass2.Pass2 XunitTests.TestClass2.Fail
dotnet core 3.1.201 For mstest:
For nunit:
For Xunit: