Chameera Dulanga
Chameera Dulanga

Reputation: 228

Azure pipeline Running NUnit Tests

In my Azure Build Pipeline, Azure Test Task runs successfully but Tests have not been run. This is my test task

Upvotes: 1

Views: 2853

Answers (1)

Leo Liu
Leo Liu

Reputation: 76920

In my Azure Build Pipeline, Azure Test Task runs successfully but Tests have not been run.

Just like Shayki Abramczyk pointed out. You should specify the test dlls in the option Test files. And the default value should be:

**\*test*.dll
!**\*TestAdapter.dll
!**\obj\**

enter image description here

Check the document Visual Studio Test task for some more details.

Update:

When I do that it says No test assemblies found matching the pattern: Test.dll,!***TestAdapter.dll,!\obj**

We need to build the solution before we test the dll files:

enter image description here

Hope this helps.

Upvotes: 2

Related Questions