I created a nightly build to run my data driven unit tests. When my build finished it was only partially successfully. I looked at the unit tests and they were all passing yet there was an error on the testing step. When I looked in the log below is the message I saw. I thought this was a little confusing because there was only a warning. I wasn’t sure what caused the TestToolsTask to fail. I first thought it was a permission or some other issue when it was trying to publish but the results did publish. Next I looked at the warning VSP1030 message. Then I remembered I enabled code coverage but the build configuration was set to Release. I changed the build to Debug and everything worked! Before I figured out the issue I tried searching the web but I didn’t find any solutions. I hope this helps.
Summary
-------
Test Run Warning.
Passed 6
---------
Total 6
Results file: t:\builds\MyTeamProject\Nightly Build\TestResults\builduser_MYSERVER_2009-03-25 23_56_46_Any CPU_Release.trx
Run Configuration: Local Test Run
Run has the following issue(s):
Instrumentation error while processing file BusinessObjects.dll:
TESTTOOLSTASK : warning VSP1030: Invalid, mismatched, or no PDB file was found for t:\builds\MyTeamProject\Nightly Build\Binaries\Release\BusinessObjects.dll.
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Waiting to publish...
Publishing results of test run builduser@MYSERVER 2009-03-25 23:56:46_Any CPU_Release to http://tfsserver:8080/Build/v1.0/PublishTestResultsBuildService2.asmx...
....Publish completed successfully.
The command exited with code -1.
Build continuing because "ContinueOnError" on the task "TestToolsTask" is set to "true".
Done executing task "TestToolsTask" -- FAILED.
Mike