views:

120

answers:

0

I've got a build agent running builds for TFS and I want to enable code coverage. My build file looks like this

<PropertyGroup>
    <RunTest>true</RunTest>
    <RunConfigFile>$(SolutionRoot)\CITestRun.testrunconfig</RunConfigFile>

    <RunCodeAnalysis>Default</RunCodeAnalysis>
    <TreatTestFailureAsBuildFailure>true</TreatTestFailureAsBuildFailure>

    <WorkItemType>Bug</WorkItemType>
    <SkipWorkItemCreation>true</SkipWorkItemCreation>

    <UpdateAssociatedWorkItems>true</UpdateAssociatedWorkItems>
</PropertyGroup>

<ItemGroup>
    <MetaDataFile Include="$(BuildProjectFolderPath)/../../projecttests.vsmdi">
        <TestList>MurrayContinuousTests</TestList>
    </MetaDataFile>
</ItemGroup>

But I'm getting this error in the CoverageLog2.log:

Error when creating coverage info: Error loading symbol file. Symbol and binary files should be in the same folder as the coverage file or on the symbol path

I found this thread on MSDN but it was fairly unhelpful. The data.coverage is being created in the TestResults\[GUID]\In\[SERVERNAME] folder, but when I try and load it manually in Visual Studio I get the same error.