Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Test Explorer does not see XUnit dnx traits

The Visual Studio 2015 Test Explorer does not recognize my test traits.

When I add this to a test in a DNX project:

[Trait("Category", "Test")]

the test still shows up in the Test Explorer under the No Traits group (when grouping tests by Traits).

like image 221
StewartArmbrecht Avatar asked Aug 27 '15 20:08

StewartArmbrecht


People also ask

How do I enable test Explorer in Visual Studio?

If Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl + E, T). As you run, write, and rerun your tests, the Test Explorer displays the results in a default grouping of Project, Namespace, and Class.

How do I stop a test case from running in Visual Studio?

You need to close the Test Explorer Window to prevent automatic running.

How do I debug a test project in Visual Studio 2019?

To start debugging: In the Visual Studio editor, set a breakpoint in one or more test methods that you want to debug. Because test methods can run in any order, set breakpoints in all the test methods that you want to debug. In Test Explorer, select the test method(s) and then choose Debug on the right-click menu.


1 Answers

Looks like this is already logged as an issue:

VS 2015 Bugs - Traits and Project Grouping in Test Explorer #485

like image 183
StewartArmbrecht Avatar answered Jan 02 '23 10:01

StewartArmbrecht