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

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

问题描述

我很难解决如何在我的realease管道上正确配置功能测试的问题.我有一个解决方案,其中包含一些使用VSTS中的默认构建配置构建的Web项目.工件还可以,我可以使用发布管道来发布它们. 到目前为止,到目前为止,我想使用CodedUI实现功能测试并将其集成到我的发行版中.当我配置部署组时,我们有一台带有vsagent的开发服务器.然后,我使用下载了

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.

然后我在发布管道中添加了一个新任务:VsTest的配置如下

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:

我的构建任务:

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

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

因此,基本上,如何发布测试程序集以便在发布管道中使用它们?我是否正确地将测试程序集和Web项目工件打包在一起了?

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?

推荐答案

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

You can try to copy the Test Assemblies to $(build.artifactstagingdirectory) and publish with the artifact.

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

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天全站免登陆