Using VSTest to run unit test cases instead of MSTest

前端 未结 3 518
北荒
北荒 2021-01-31 12:08

I have an x64 platform C# solution(VS2012) on a TFS2010 server. I have attached a unit test project (also x64) to this solution and created a build definition. When I queue the

3条回答
  •  -上瘾入骨i
    2021-01-31 12:25

    This does not directly answer you question, but it might help. I did a similar thing for TeamCity. I used command-line to call vstest.console.exe and created a .runsettings file.

    I used this Microsoft template for the runsettings file. Note however that on my machine, the path mentioned in the comment in Line 5 is relative to the .runsettings location, not the .sln.

    If you use /logger:trx option of vstest.console.exe, it will generate output in the same format as MSTest (good for result visualization).

提交回复
热议问题