Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2012 Making test results appear in the Test Results window

From the Menu I Choose Test->Run->All Tests

I can see the results of the test run in the Test Explorer but I get nothing in the Test Results window.

How do I get my test results there?

like image 657
Aran Mulholland Avatar asked Aug 24 '12 02:08

Aran Mulholland


People also ask

How do you define test results?

Test Results means the measurable and objective findings obtained from the evaluations.

How do I open the test window in Visual Studio?

If Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl + E, T). As you run, write, and rerun your tests, the Test Explorer displays the results in a default grouping of Project, Namespace, and Class.

Does TestInitialize run for each test?

TestInitialize and TestCleanup are ran before and after each test, this is to ensure that no tests are coupled. If you want to run methods before and after ALL tests, decorate relevant methods with the ClassInitialize and ClassCleanup attributes. Save this answer.


1 Answers

The Unit Test Framework has been rearchitected and will no longer generate the .trx file for you in order for the Test Results Explorer to show your test run results. From what I gather the new Test Explorer window replaces this without having to generate files.

http://connect.microsoft.com/VisualStudio/feedback/details/750184/test-results-window-does-not-show-test-results

like image 54
JustinMichaels Avatar answered Oct 15 '22 16:10

JustinMichaels