找不到与模式匹配的测试程序集-Visual Studio测试-VSTS [英] No test assemblies found matching the pattern - Visual Studio Test - VSTS

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

问题描述

此问题类似于-​​ VSTS测试程序集-未找到测试程序集-当时似乎可以解决.不幸的是,我遇到类似的复发,但不确定如何解决.

This question is similar to - VSTS Test Assemblies - No test assemblies found - which appeared to resolve itself at the time. Unfortunately I'm getting a similar recurrence that I'm not sure how to resolve.

在Visual Studio测试步骤中,我收到以下消息....

During my Visual Studio Test step, I'm getting the following message....

2017-12-05T18:43:31.9808980Z ##[warning]No test assemblies found matching the pattern: *SA.SEPA.Web.UI.Selenium.dll.

在我的VSTS任务中,构建解决方案后,我将整个项目目录复制到虚拟机上的目录中.该虚拟机还托管构建代理.

In my VSTS tasks, after I build my solution, I copy an entire project directory to a directory on the virtual machine. This virtual machine is also hosting the build agent.

复制文件后,测试程序文件的路径在此处....

The path to the test assembly file is here, after the files have been copied....

我的测试任务如下所示....

My test task looks like the following....

搜索文件夹应该正确,因为这是带有构建代理的机器.

The search folder should be correct, as this is the machine with the build agent.

查看此处描述的最小匹配模式- https://docs.microsoft.com/zh-cn/vsts/build-release/tasks/file-matching-patterns *SA.SEPA.Web.UI.Selenium.dll也应与SA.SEPA.Web.UI.Selenium.dll文件匹配,可能不需要星号(?)

Looking at the minimatch patterns described here - https://docs.microsoft.com/en-us/vsts/build-release/tasks/file-matching-patterns, *SA.SEPA.Web.UI.Selenium.dll should also match to the SA.SEPA.Web.UI.Selenium.dll file, possibly without requiring the asterix (?)

构建日志位于此处- https://gist.github.com/Konnor5092/1feb4536f7dd92218de27df8f3fefc52

任何帮助将不胜感激.

推荐答案

您的dll位于c:\build的子目录中,因此搜索将需要递归:

Your dll is in a sub directory of c:\build so the search will need to be recursive:

**\SA.SEPA.Web.UI.Selenium.dll

或将搜索文件夹更改为c:\build\bin\debug

or change the search folder to c:\build\bin\debug

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

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