Execute Unit Tests using MsBuild command line

后端 未结 3 1190
既然无缘
既然无缘 2020-12-28 14:54

I use scripting for this:

\"%ProgramFiles%\\Microsoft Visual Studio 9.0\\Common7\\IDE\\TF.exe\" 
  get $/DmlOnDemmand /recursive /force /noprompt

And I

相关标签:
3条回答
  • 2020-12-28 15:09

    I inserted a Test-Project in the Solution.

    Every build a library the test depends on is changed the solution updates the Test-Project. The Test is automaticaly run after each "Test-Project" change with the Post-Build option.

    The result from the Test is directly shown in the buildlog.

    0 讨论(0)
  • 2020-12-28 15:14

    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.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow directory.

    0 讨论(0)
  • 2020-12-28 15:23

    Have you tried using MSTest.exe?

    found possible dupe

    How to run unit testing tests from command line?

    and related

    How to run ALL tests in my solution using command line MSTest.exe?

    and in that question there is a neat utility called Gallio Echo that seems like a awesome option to check out.

    but if you want to just use MSTest.exe this should just about cover how to use it

    http://msdn.microsoft.com/en-us/library/ms182486.aspx

    0 讨论(0)
提交回复
热议问题