Forum Discussion
umashankarsharma
Feb 11, 2023Copper Contributor
Failed Tests in DevOps Pipeline due to "could not find testhost"
Hi , I am facing the below issue while deploying my Azure Functions. There are tests written in the pipeline which are failing with the below error. Any suggestions? ##[error]Could not find t...
ppit89
Aug 14, 2023Copper Contributor
umashankarsharma hi, not sure if it's going to help or it's too late, but add to the unit tests Nuget Package called Microsoft.NET.Test.Sdk (mine is version 17.7.0), I had that exact problem in my local machine and after an hour of banging on the head at the desk and adding that library worked nicely. I will try to update this post if it worked on my pipeline setup.
- AlexanderThomaDec 14, 2023Copper Contributor
ppit89 Hi, thank you so much for your answer. You literally saved my day. Adding Microsoft.NET.Test.Sdk Nuget package in each test project solved the issue