Run / Group Tests by Category Nunit Attribute in Visual Studio

I am trying to use the Category NUnit attribute with my Visual Studio Profession 2015. However, this attribute does not classify tests in Test Explorer.

[Test]
[Category("ValidLogins")]

I tried this as:

[Test, Category("Login")]

But even that didn’t work. Any suggestion?

+4
source share
1 answer

By default, Visual Studio Test Explorer tested tests Exodus , which are grouped by missing, failure and are not satisfied. Many people skip grouping change options.

You can right-click on a group and select Group By ,

Grouping tests in Visual Studio

Test Explorer.

Grouping tests in Visual Studio

Visual Studio , , , . NUnit.

+11

Source: https://habr.com/ru/post/1653995/


All Articles