找不到与模式匹配的测试程序集

编程入门 行业动态 更新时间:2024-10-09 04:21:04
本文介绍了找不到与模式匹配的测试程序集-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.

查看此处描述的最小匹配模式- 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

更多推荐

找不到与模式匹配的测试程序集

本文发布于:2023-11-25 10:16:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1629354.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   模式   测试   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!