执行使用的MSBuild命令行的单元测试 [英] Execute Unit Tests using MsBuild command line
问题描述
我使用脚本这个:
"%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe"
get $/DmlOnDemmand /recursive /force /noprompt
和我建立的解决方案的.sln
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.
我怎么能执行的.csproj的单元测试使用类似的MSBuild的构建工具命令行的解决方案的项目?
How can I execute unit tests of .csproj projects of a solution from the command line using a build tool like MSBuild?
推荐答案
您是否尝试过使用的 MSTest.exe ?
Have you tried using MSTest.exe?
找到可能的重复数据删除
found possible dupe
的 http://stackoverflow.com/questions/3930445/how-to-run-unit-testing-tests-from-command-line 一>
和相关
的http://stackoverflow.com/questions/3961633/how-to-run-all-tests-在我的解决方案,使用的命令行-MSTest的-EXE
和在这个问题有一个叫整洁实用的这似乎是一个真棒选项检查出加利奥回声。
and in that question there is a neat utility called Gallio Echo that seems like a awesome option to check out.
但如果你只想使用MSTest.exe这应该只是介绍如何使用它
but if you want to just use MSTest.exe this should just about cover how to use it
< A HREF =http://msdn.microsoft.com/en-us/library/ms182486.aspx> http://msdn.microsoft.com/en-us/library/ms182486.aspx
这篇关于执行使用的MSBuild命令行的单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!