Reputation: 228
In my Azure Build Pipeline, Azure Test Task runs successfully but Tests have not been run.
Upvotes: 1
Views: 2853
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\**
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:
Hope this helps.
Upvotes: 2