[英]How do I execute my Visual Test project in the build output folder for Azure Devops Visual Studio Test task
On my local machine the Unit tests run successfully on the deployment folder.在我的本地机器上,单元测试在部署文件夹上成功运行。 They fail when run on a local test deployment folder as some files are missing.由于缺少某些文件,它们在本地测试部署文件夹上运行时会失败。
Is there a way to have the tests run on the deployment folder (as opposed to test deployment folder) when being run on Azure Devops Visual Studio Test task.在 Azure Devops Visual Studio 测试任务上运行时,有没有办法让测试在部署文件夹(而不是测试部署文件夹)上运行。
How do I execute my Visual Test project in the build output folder for Azure Devops Visual Studio Test task如何在 Azure Devops Visual Studio 测试任务的构建 output 文件夹中执行我的 Visual Test 项目
Since the issue you got came from missing assemblies.由于您遇到的问题来自缺少程序集。 You should check how you configure the Test files
and Search folder
:您应该检查如何配置Test files
和Search folder
:
For yaml: check testAssemblyVer2
and searchFolder
inputs.对于 yaml:检查testAssemblyVer2
和searchFolder
输入。
According to your description, the VSTS test task is in classic release pipeline or multi-stage yaml pipeline.根据您的描述,VSTS 测试任务在经典发布管道或多阶段 yaml 管道中。
If the build outputs you mean come from build task in build pipeline, consider using Download artifact task first to download the build outputs.如果您的意思的构建输出来自构建管道中的构建任务,请考虑首先使用下载工件任务来下载构建输出。
And If the build outputs come from build task in same pipeline, or from local machine.如果构建输出来自同一管道中的构建任务,或者来自本地机器。 Just make sure the Search folder is set correctly to locate the assemblies.只需确保正确设置搜索文件夹即可找到程序集。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.