简体   繁体   English

windows 命令模式匹配失败

[英]windows command pattern match failing

Problem:问题:

I have the below command which runs the console file and parallely executes the dll files我有以下命令运行控制台文件并并行执行 dll 文件

This below command fails stating that the file is not at the source.以下命令失败,说明文件不在源中。 Basically it says the file is not found at ..\bin\unittest path基本上它说在..\bin\unittest路径中找不到该文件

%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" /Logger:trx --Parallel "..\bin\UnitTest\*unity*tests*.dll"

The above command works fine when i run for the single file like the below.当我像下面这样运行单个文件时,上面的命令可以正常工作。 The below cmd works fine.下面的 cmd 工作正常。

%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" /Logger:trx --Parallel "..\bin\UnitTest\Lang.unity.tests.dll"

So I believe the problem is due to the pattern matching with unity tests.所以我认为问题是由于与统一测试的模式匹配。 I tried multiple workaround but the command fails我尝试了多种解决方法,但命令失败

Can any one point out why the command fails?任何人都可以指出命令失败的原因吗?

A quick google finds these links:一个快速的谷歌找到这些链接:

[test file names] - Run tests from the specified files. [测试文件名] - 从指定文件运行测试。 Separate multiple test file names with spaces.用空格分隔多个测试文件名。 Examples: mytestproject.dll, mytestproject.dll myothertestproject.exe示例:mytestproject.dll、mytestproject.dll myothertestproject.exe

Q: is this done.问:这个完成了吗? I see that there was a PR above that was merged with this support我看到上面有一个 PR 与此支持合并

A: Yes this is complete A:是的,这是完整的

Q: Do you perhaps now in which version this improvement has been included?问:您现在可能在哪个版本中包含了这项改进?

A: Here is the latest version that is released https://github.com/microsoft/vstest/releases/tag/v16.3.0-preview-20190808-03 A: 这是发布的最新版本https://github.com/microsoft/vstest/releases/tag/v16.3.0-preview-20190808-03

So I'm going to go out on a limb and say either space-delimit the filenames, or upgrade to a newer version of vstest.console.exe...因此,我将尝试使用 go 并说要么用空格分隔文件名,要么升级到较新版本的 vstest.console.exe ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM