I am having a really hard time trying to figure out how to properly configure functional tests on my realease pipeline. I have a solution that contains some web projects bei
You need to publish a separate artifact containing your test assemblies.
You can try to copy the Test Assemblies to $(build.artifactstagingdirectory)
and publish with the artifact.
Alternately you can try to add another Copy Task
and Publish Build Artifacts
task or directly use Copy and Publish Build Artifacts
task to copy the Test Assemblies and publish them as another Artifact.
I had a related issue, but was able to fix it by changing the search folder from the template default $(System.DefaultWorkingDirectory) to $(Agent.BuildDirectory). This way I do not need to create a copy task.
My tests are located in a separate project.