在TeamCity 7中为MSTest运行程序指定测试程序集时了解通配符 [英] Understanding wildcards when specifying test assemblies for the MSTest runner in TeamCity 7
问题描述
基本上,我想指定以Test.dll结尾的所有文件",也称为*.Test.dll
. *.Test.dll
不起作用,可能是因为它仅匹配当前工作目录中的文件.
Basically I want to specify "all files that end with Test.dll", also known as *.Test.dll
. *.Test.dll
doesn't work, presumably because it matches only files in the current working directory.
但是,我对**\*Test.dll
也没有任何运气.由于某种原因,我不得不使用**\bin\**\*Test.dll
来查找它可以运行的任何测试程序集.
However, I didn't have any luck with **\*Test.dll
either. For some reason I had to use **\bin\**\*Test.dll
for it to find any test assemblies it could run.
据我所知,MSTest的TeamCity 7文档未提及通配符.在TeamCity 7中为MSTest运行程序指定测试程序集时,有人可以帮助我理解通配符吗?
The TeamCity 7 documentation for MSTest doesn't say anything about wildcards, as far as I can tell. Can someone help me understand wildcards when specifying test assemblies for the MSTest runner in TeamCity 7?
是否可以在任何目录中指定与某个文件名模式匹配的文件?
Is it possible to specify files matching a certain file name pattern, but in whatever directory?
推荐答案
根据通配符 **\*Test.dll
应该有效.因此,无论是错误还是正斜杠与反斜杠问题都很重要.
According to the TeamCity documention on Wildcards **\*Test.dll
should have worked. So either it's a bug or the forward slash versus backward slash issue is significant.
这篇关于在TeamCity 7中为MSTest运行程序指定测试程序集时了解通配符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!