Where is the Visual Studio "Test Explorer" output located? Is this a saved file?

I use SpecFlow for unit testing in Visual Studio 2013, and when I run the tests from the Test Explorer window, there is a link to Output, which shows everything that is written on the console during the test.

Output link

When I right-click on a tab, I cannot open the contained folder, as is the case with other project files.

Path-related options not available

Is this a file that is saved somewhere? Can I access it somewhere, or do I have to manually write code to save it in a known place?

+5
source share
1 answer

After digging a bit, I could not find a way to actually view the results from the test explorer window. So the best I can do is give you an alternative.

What you need to do is run your test using the program vstest.console.exe, which works almost exactly the same as from VS. You can find it under

C:\Program Files(x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsft\TestWindow\vstest.console.exe 

run this from your cmd / terminal and configure it as you would like. You can enable logging, files are saved in the TestResults folder in the same folder as above, and you can see your results. An example test run will look like this:

 vstest.console.exe D:\(Path To my Test)\(My Tests dll file).dll /Settings:D:(Path tO my Tests)\(My Test settings file).testsettings /logger:trx 
+6
source

All Articles