问题描述
我为此使用脚本:
<上一页>"%ProgramFiles%Microsoft Visual Studio 9.0Common7IDETF.exe"得到 $/DmlOnDemmand/recursive/force/noprompt我构建解决方案 .sln
<上一页>调用 %msBuildDir%msbuild %solutionName%/t:Rebuild/p:Configuration=%buildType%现在,我想执行所有单元测试并检查一切正常.
如何使用 MSBuild 等构建工具从命令行执行解决方案的 .csproj 项目的单元测试?
看看 VSTest.Console.EXE
他们为 CodedUI 测试添加了这个.似乎有更多的功能.https://msdn.microsoft.com/en-us/library/jj155800.aspx在 C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDECommonExtensionsMicrosoftTestWindow
目录中.
I use scripting for this:
"%ProgramFiles%Microsoft Visual Studio 9.0Common7IDETF.exe" get $/DmlOnDemmand /recursive /force /noprompt
And I build solution .sln
call %msBuildDir%msbuild %solutionName% /t:Rebuild /p:Configuration=%buildType%
Now, I would like execute all Unit Tests and check all is OK.
How can I execute unit tests of .csproj projects of a solution from the command line using a build tool like MSBuild?
Look at VSTest.Console.EXE
they added this for CodedUI tests. Seems to have more functionality.
https://msdn.microsoft.com/en-us/library/jj155800.aspx
in C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDECommonExtensionsMicrosoftTestWindow
directory.
这篇关于使用 MsBuild 命令行执行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!