简体   繁体   English

如何在 Azure Devops Visual Studio 测试任务的构建 output 文件夹中执行我的 Visual Test 项目

[英]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 filesSearch folder

在此处输入图像描述

For yaml: check testAssemblyVer2 and searchFolder inputs.对于 yaml:检查testAssemblyVer2searchFolder输入。

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.

相关问题 如何在 CI 构建 Azure DevOps 中构建单元测试项目以及“Visual Studio 构建”任务 - How to build the Unit Test project along with the 'Visual Studio Build' task in CI build Azure DevOps 在 Azure DevOps 管道中为 Visual Studio 测试任务设置应用程序设置 - Set App Settings for Visual Studio Test Task in Azure DevOps Pipeline 如何通过Visual Studio Online执行Azure云服务CI构建时构建单元测试项目? - How to build unit test project when performing an Azure Cloud service CI build via Visual Studio Online? 如何在 Azure Devops Pipeline 托管代理中构建 Visual Studio 安装程序项目 - How to build Visual Studio Installer Project in Azure Devops Pipeline Hosted Agent 如何在Azure DevOps中构建多个相互依赖的Visual Studio解决方案 - How to build multiple interdependent Visual Studio solutions in Azure DevOps Visual Studio 2019:如何将您的项目保存到 Azure DevOps? - Visual Studio 2019: how to save your project to Azure DevOps? Azure DevOps“ Visual Studio测试”-使用“替代参数”时无法启用“重新运行失败的测试” - Azure DevOps “Visual Studio Test” - Cannot Enable “Rerun Failed Tests” When using “Override Parameters” 如何使用Visual Studio但不使用Azure模拟器将现有的Web应用程序项目部署到Azure? - How do I deploy an existing web app project to Azure using Visual Studio but no Azure Emulator? 我如何从 Azure Devops 构建/发布管道执行在我的 Azure Databricks 笔记本中编写的 ScalaTest 测试用例 - How do i execute the ScalaTest testcases written in my Azure Databricks notebook from Azure Devops build/release pipeline .net 核心单元测试项目未能在 Azure Devops 管道中构建 - .net core unit test project failing to build in Azure Devops pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM