Unit Test ouput in MSBuild/TFS 2008

Posted by Adam Jenkin on Stack Overflow See other posts from Stack Overflow or by Adam Jenkin
Published on 2010-04-14T10:39:56Z Indexed on 2010/04/14 10:43 UTC
Read the original article Hit count: 389

Filed under:
|
|
|

I have a build in TFS 2008 which includes the running of a UnitTest project.

I have configured my build as such that in the drop folder after each build, I get a StyleCop.log, FxCop.log and would like to place the trx or output from the unit tests here also.

I can see that my unit tests are running as part of the build, however currently I cannot find were the output is saved to or find a way of setting the ouput to my drop location ($(DropLocation)\$(BuildNumber)\MyUnitTests.txt)

My unit tests are included by using the following:-

<RunTest>true</RunTest>
...
<ItemGroup>
    <TestContainer Include="$(OutDir)\%2aMyUnitTests.dll" />
</ItemGroup>

Can somebody help explain how I can achieve this.

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about tfs