I am trying to run automated test from Test Plan in Azure. As per the documentation -> https://learn.microsoft.com/en-us/azure/devops/test/run-automated-tests-from-test-hub?view=azure-devops, I have created build and release definitions, and to Select tests using is set to Test run. When i run the test, stage is passed with out executing the test and a warning "unable to find any test file matching the pattern *test.dll !TestAdapter.dll !\obj is displayed. But my test pattern looks something different .Tests.dll and we cannot change this pattern if we use Test Run as option in Classic editor. I couldnt find a way to use YAML pipeline to update the test assemblies. Is there any other way to change the test pattern. ?
Run Automated Tests from Azure Test Plan
874 Views Asked by Siddhu255 At
2
There are 2 best solutions below
1

I was able to over come this by following steps in below articles. Hope it will be useful for others. [https://medium.com/@drewelewis/simplified-automated-qa-testing-on-azure-devops-43d15305df85] [https://learn.microsoft.com/en-us/azure/devops/test/run-automated-tests-from-test-hub?view=azure-devops]
Unlike any other UI test, it's not able to change dll pattern for running automated Tests from Azure Test Plan. It's only able to pass parameters to your test code.
As a workaround, you may need to change your test pattern to
.Tests.dll