For some reason, Test Explorer in my VS2015 Community Edition doesn't detect traits in AspNetCore test project. I am using mstest testRunner.
All test methods go into "No Traits" category despite proper TestCategory annotations.
- I have tried both single annotation and several ones (which actually I am trying to capitalize on).
- I have trying assigning them to test class and test method.
- I am using the latest nuget packages
for test-related dependencies:
- "dotnet-test-mstest": "1.1.2-preview",
- "MSTest.TestFramework": "1.1.11",
- "Microsoft.AspNetCore.TestHost": "1.1.0",
What am I doing wrong?
Please try with the latest version (1.1.11) of the MSTest test framework and adapter:
Framework: https://www.nuget.org/packages/MSTest.TestFramework/
Adapter: https://www.nuget.org/packages/MSTest.TestAdapter/
Also, please use VS2017 (this was not supported via VS2015).
Let me know if you still see the issue.