发布带有工件的测试程序集,以便在 VSTS 上的功能测试期间使用它们 [英] Publishing test assemblies with artifacts in order to use them during functional tests on VSTS

本文介绍了发布带有工件的测试程序集,以便在 VSTS 上的功能测试期间使用它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难弄清楚如何在我的 realease 管道上正确配置功能测试.我有一个解决方案,其中包含一些使用 VSTS 中的默认构建配置构建的 Web 项目.该工件没问题,我可以使用发布管道发布它们.到目前为止一切顺利,现在我想使用 CodedUI 实现功能测试并将它们集成到我的版本中.我们有一个带有 vsagent 的开发服务器,它是在我配置部署组时安装的.然后我使用我下载的工具手动安装了 vstest 代理

这是我的发布管道中测试任务的日志输出,其中表示未找到任何测试程序集:

我的构建任务:

这是我的工件包,它似乎没有任何测试程序集,只有网络项目:

那么基本上,我如何发布我的测试程序集以便在我的发布管道中使用它们?我是否正确地将测试程序集与我的网络项目工件打包在一起?

解决方案

您可以尝试将测试程序集复制到 $(build.artifactstagingdirectory) 并与工件一起发布.

或者,您可以尝试添加另一个Copy TaskPublish Build Artifacts 任务或直接使用Copy and Publish Build Artifacts 任务来复制测试程序集并将它们作为另一个工件发布.

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 being built using the default build configuration in VSTS. The artifact is ok and I can publish them using a release pipeline. So far so good, now I want to implement functional tests using CodedUI and have them integrated on my releases. We have a development server with a vsagent that was installed when I configured the deployment group. I then installed manually a vstest agent using a tool that I have downloaded here.

I then added a new task on my release pipeline: VsTest configured as follows

This is the log output from the test task in my release pipeline where it says that no test assemblies were found:

My build task:

And this is my artifact package that doesnt seems to have any test assemblies, only web projects:

So basically, how do I publish my test assemblies in order to use them in my release pipeline? Am I doing it right packing the test assemblies together with my web projects artifacts?

解决方案

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.

这篇关于发布带有工件的测试程序集,以便在 VSTS 上的功能测试期间使用它们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆