How to specify the location for the unit test results in VS 2010?

前端 未结 2 794
名媛妹妹
名媛妹妹 2021-01-02 10:37

I use VS2010 for unit testing. Does anyone know how to specify the location of where VS 2010 put its TestResults? By default it put a TestResults folder in the solution fo

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 11:15

    MSTest.exe will generate results in the current folder as kroonwijk states, but you can override that with the /resultsfile command line switch by specifying the output filename in a different folder, it will also deploy a subfolder with the test files to the same location.

    For example "/resultsfile:c:\TestResults\mstestreport.trx" will override the default deployment folder and also override anything that is in the tag in the settings file.

提交回复
热议问题