Where does VS 2013/2015 store the unit test results? RRS feed

  • Question

  • I am using the TEST->Run->All Tests menu item in VS 2013/2015 to run the unit tests associated with a project. I can use the Test Explorer to view the results however I want to determine where VS is storing the results so I can programmatically parse them. I thought there would be a .trx file created but I don't have one. 

    Where are these results stored?

    Friday, May 27, 2016 6:01 PM


  • Hi,

    as I know it isn't stored anymore (export functionality was removed) since VS2012.

    You can get a result file (.trx) from a mstest run:

    mstest.exe /testcontainer:"UnitTestProject1.dll" /resultsfile:"UnitTestProject1.trx"



    • Edited by David Roller Friday, May 27, 2016 7:09 PM
    • Proposed as answer by Weiwei Cai Sunday, May 29, 2016 2:34 AM
    • Marked as answer by Weiwei Cai Tuesday, June 7, 2016 1:52 AM
    Friday, May 27, 2016 7:07 PM