Wednesday, 9 August 2006

TestResults "In" Directory

When unit testing in VSTS I always puzzled as to how the "In" TestResults sub-directory was used, the "Out" directory is obvious. Turns out that it is used for two things. Firstly the code coverage results are stored there. Secondly it is used as the location of files used as part of the test that aren't copied to the output directory. Files can be put into the "In" directory by calling TestContext.AddResultFile("filename"); You could use this to, for example, store files that were created and/or written to as part of the testing process.

Thanks to Michael Koltachev for pointing this out on the VSTS forums.

Posted by kevin at 10:09 AM in Net

« August »
SunMonTueWedThuFriSat
  12345
6789101112
13141516171819
20212223242526
2728293031