VSTS测试程序集-未找到测试程序集 [英] VSTS Test Assemblies - No test assemblies found

查看:132
本文介绍了VSTS测试程序集-未找到测试程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在解决方案中运行一些硒测试,这些测试在名为 SA.SEPA.Web.UI.Selenium 的项目中,作为VSTS中的构建定义的一部分,但失败了使用错误...运行 Visual Studio测试任务...

I'm attempting to run some selenium tests in my solution that are in a project called SA.SEPA.Web.UI.Selenium as part of a build definition in VSTS, but it is failing to run the Visual Studio Test task with the error...

No test assemblies found matching the pattern: **\*Selenium*.dll.

搜索文件夹设置为-$(System.DefaultWorkingDirectory)

Search folder is set to - $(System.DefaultWorkingDirectory)

之前的任务是nuget还原和构建解决方案

Preceding tasks are a nuget restore and build solution

任何人都可以帮忙吗?

推荐答案

您正在将$(System.DefaultWorkingDirectory)指定为搜索文件夹.默认情况下(除非被覆盖),它指向代理上的Source文件夹. 如果要指示MSBuild(使用OutDir参数)在特定位置输出程序集,则应使用该位置.

You are specifying $(System.DefaultWorkingDirectory) as the search folder. By default (unless overridden), this points to the Source folder on the Agent. If you are instructing MSBuild (using the OutDir parameter) to output your assemblies in a specific location then you should use that location.

如果这是本地代理,则要执行任何UI测试,它也应该以交互模式运行(而不是服务)

If this is an On-premises Agent, it should also be running in interactive mode (not service) if you want to execute any UI tests

这篇关于VSTS测试程序集-未找到测试程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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