0

We have lots of tests in our projects which we have categorized as:

 [Test]
 [Category("UnitTest")]
 public void DoSomething()
 {

I can't figure out how to get the category to run on DevOps. In VS Test this was straight forward but we have to use a .Net Core test Task:

(This fails)

enter image description here

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Rick Nash
  • 21
  • 3

1 Answers1

0

So after I searched on here and then post a question, I find the solution on here:

Why dotnet test project.csproj --filter category=unit fails in Azure DevOps?

--configuration $(BuildConfiguration) --filter Category=UnitTest

Rick Nash
  • 21
  • 3