此问题类似于- 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.
查看此处描述的最小匹配模式- docs.microsoft/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 - docs.microsoft/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 (?)
构建日志位于此处- gist.github/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
更多推荐
找不到与模式匹配的测试程序集
发布评论