locked
When using VSTest.console.exe with /logger:trx the output differs from mstest output, why? RRS feed

  • Question

  • We are using mstest for unit test execution on our buildserver (not tfs) and need to switch to vstest.console.exe now because we're using Fakes and mstest does not support Fakes...

    So the trx file xml structure generated by vstest.console.exe differs from the mstest trx output. As a hint a trx file generated by mstest has a size of 14.9 MB, a vstest.console trxfile has only a size of 10MB.

    So trx is no standard??


    • Edited by mwlo Wednesday, November 13, 2013 8:37 AM
    Wednesday, November 13, 2013 8:37 AM

Answers

  • Hi,

    Thank you for posting in the MSDN forum.

    If you really want to know the differences between the two results file, you could open them and compare them. If you want to know the differences between the two command lines:

    How is it (vstest.console.exe) different from Mstest.exe ?

    With Visual Studio 2011, the tests written using visual studio unit test framework could be run using either vstest,console.exe or using mstest.exe. The behavior would be same with subtle differences (which is briefed in the below table).

    vstest.console.exe has some additional options /platform /framework which would let the user to run their tests in a specific platform/framework to increase test coverage.

    Reference:

    http://blogs.msdn.com/b/bhuvaneshwari/archive/2012/06/16/vstest-console-exe-commandline-test-runner.aspx

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, November 14, 2013 11:26 AM