Export (0) Print
Expand All

Troubleshooting Team Foundation Build Tests

The following sections describe common troubleshooting scenarios you may experience when configuring Team Foundation Build tests.

When you run static analysis with Team Foundation Build, one or both of the following errors may be recorded in the log file:

  • In order to perform Code Analysis on managed binaries, MSBuild must start FxCop. MSBuild cannot locate the FxCop binaries. Make sure Visual Studio Team System Development Edition or Visual Studio Team System Team Foundation Server is installed and run MSBuild from the "Visual Studio Command Prompt" or specify the path of FxCop by setting the FXCOPDIR environment variable."

  • Target RunTestWithConfiguration:

    MSBUILD : warning : Visual Studio Team System Test Edition or Visual Studio Team System Development Edition is required to run tests as part of a Team Foundation Build.

    The previous error was converted to a warning because the task was called by using ContinueOnError=true.

    Build continuing because "ContinueOnError" on the task "TestToolsTask" is set to "true".

    Done building target "RunTestWithConfiguration" in project "TFSBuild.proj".

Solution

Install Visual Studio Team System Development Edition to run unit tests, static analysis tools, or code coverage. If you must also include Web and load tests, then install Visual Studio Team System Test Edition instead.

Make sure that you do not have an empty test list or subtest list included in the build process. If you have empty lists, edit the TFSBuild.proj file to remove them.

Make sure that at least one test list is included in the build and that each test list includes at least one test.

Make sure that the Visual Studio Team Foundation Build service Account has Full control permission access to the publish drop and that the drop location is a shared folder.

If you add extra text files to the test list by editing the localtestrun.testrunconfig file, locate the <path type="file path" > line for deploymentItems and remove the final "\" character for the directory location. For example, change DH2.Test.TR.CRM\Conditions\ to DH2.Test.TR.CRM\Conditions.

Community Additions

ADD
Show:
© 2015 Microsoft