TFS正式版发布没有找到与以下模式匹配的测试程序集:** \ * UITests * .dll,!** \ obj \ [英] TFS Prem Release No test assemblies found matching the pattern: **\*UITests*.dll,!**\obj\

查看:51
本文介绍了TFS正式版发布没有找到与以下模式匹配的测试程序集:** \ * UITests * .dll,!** \ obj \的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图触发测试在我们的开发环境服务器上进行.这些测试确实是在具有构建代理和测试代理的构建服务器上执行的.

I am trying to trigger tests to occur on our development environments servers. The tests do get performed on the build server, which has the Build Agent and Test Agent.

我已经在我们的开发服务器上安装了

On Our development server I have installed

  • 测试代理
  • 我发现了这一行[命令] powershell NonInteractive -ExecutionPolicy 不受限制的-file D:\ TFSVSOWork_tasks So
  • 我将该目录复制到了开发服务器,因为它没有 存在.
  • 已安装Chrome
  • Test Agent
  • I found this line [command]powershell NonInteractive -ExecutionPolicy Unrestricted -file D:\TFSVSOWork_tasks So
  • I copied that directory to the development server as it didn't exist.
  • installed Chrome

我在日志中看到的是

2019-07-11T20:11:46.5428863Z ##[section]Starting: VsTest - testAssemblies
2019-07-11T20:11:46.5428863Z ==============================================================================
2019-07-11T20:11:46.5428863Z Task         : Visual Studio Test
2019-07-11T20:11:46.5428863Z Description  : Run tests with Visual Studio test runner
2019-07-11T20:11:46.5428863Z Version      : 2.0.55
2019-07-11T20:11:46.5428863Z Author       : Microsoft Corporation
2019-07-11T20:11:46.5428863Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=835764)
2019-07-11T20:11:46.5428863Z ==============================================================================
2019-07-11T20:11:47.3085004Z Run the tests locally using vstest.console.exe
2019-07-11T20:11:47.3085004Z ========================================================
2019-07-11T20:11:47.3085004Z Test selector : Test assemblies
2019-07-11T20:11:47.3085004Z !**\obj\**
2019-07-11T20:11:47.3085004Z Test assemblies : **\*UITests*.dll,!**\obj\**
2019-07-11T20:11:47.3085004Z Test filter criteria : null
2019-07-11T20:11:47.3085004Z Search folder : D:\Applications\Http\xyz\test
2019-07-11T20:11:47.3241263Z Run settings file : D:\Applications\Http\Landing
2019-07-11T20:11:47.3241263Z Run in parallel : false
2019-07-11T20:11:47.3241263Z Run in isolation : false
2019-07-11T20:11:47.3241263Z Path to custom adapters : C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow
2019-07-11T20:11:47.3241263Z Other console options : null
2019-07-11T20:11:47.3241263Z Code coverage enabled : false
2019-07-11T20:11:47.3241263Z VisualStudio version selected for test execution : latest
2019-07-11T20:11:47.3241263Z [command]powershell -NonInteractive -ExecutionPolicy Unrestricted -file D:\TFSVSOWork\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.0.55\vs15Helper.ps1
2019-07-11T20:11:48.2303716Z <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
2019-07-11T20:11:48.2303716Z   <S>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise</S>
2019-07-11T20:11:48.2303716Z </Objs>
2019-07-11T20:11:48.2303716Z [command]wmic datafile where "name='C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow\\vstest.console.exe'" get Version /Value
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z Version=15.0.28307.421
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z Version=15.0.28307.421
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z 
2019-07-11T20:11:48.3397476Z ========================================================
2019-07-11T20:11:48.3553717Z ##[warning]No test assemblies found matching the pattern: **\*UITests*.dll,!**\obj\**.
2019-07-11T20:11:48.3709967Z ##[section]Finishing: VsTest - testAssemblies

它没有完成任务,这意味着我得到了绿色的对勾.但我确实得到## [warning]找不到与以下模式匹配的测试程序集: * UITests * .dll,! \ obj **. 还是还有其他我需要加载的软件.

Its not Failing the task, meaning I get a green check. but I do get ##[warning]No test assemblies found matching the pattern: *UITests*.dll,!\obj**. Or is there other pieces of software that I need still to load.

推荐答案

由于这不能回答我的所有问题,因此可以回答如何使测试在构建服务器以外的其他地方运行.我们必须在要测试的服务器上加载vstf_testagent.exe.在TFS中,我们添加了一个从其放置位置安装vstf_testagent的步骤.然后,我们开始看到我们的测试正在运行并失败.我们尚未找出需要更改的内容,因为它试图运行我们找不到的特定版本.

As this doesn't answer all my questions it does answer How you get your tests to run someplace else other than the build server. we had to load vstf_testagent.exe on the server that we wanted to test on. From TFS we added a step to install vstf_testagent from the location that we put it. We then started to see our test running and failing. We have not figured out what needs to change as it is trying to run a specific version we can't find.

这篇关于TFS正式版发布没有找到与以下模式匹配的测试程序集:** \ * UITests * .dll,!** \ obj \的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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