我为此使用脚本:
<上一页>"%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 命令行执行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
是否有执行 Excel NORMINV 函数的 C# 库?Is there a C# library that will perform the Excel NORMINV function?(是否有执行 Excel NORMINV 函数的 C# 库?)
从 C# 中的加权列表中选择 x 个随机元素(无需替换Select x random elements from a weighted list in C# (without replacement)(从 C# 中的加权列表中选择 x 个随机元素(无需替换))
给定轮班列表,创建时间表的摘要描述Create a summary description of a schedule given a list of shifts(给定轮班列表,创建时间表的摘要描述)
C# 普通随机数C# Normal Random Number(C# 普通随机数)
通用列表的标准偏差?Standard deviation of generic list?(通用列表的标准偏差?)
AsyncCTP:创建一个 IAwaitable 的类AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:创建一个 IAwaitable 的类)