"MSBUILD : Publish Failed. Test Type not installed on the server for test type"
by
Last week I stopped getting code coverage as part of the Team Build (aka TFS MSBuild) in my project. I started digging in and found the following error popping up in my build output file:
MSBUILD : warning : Publish Failed. Test Type not installed on the server for test type: “Microsoft.Samples.VisualStudio.TestTools.HostAdapters.VsIde.RunConfigData”.
C:Documents and SettingsAll UsersApplication DataMicrosoftMSEnvSharedAddins and deleting (or renaming) the file VsIdeTestHost.AddIn. (Doing this probably didn’t have any effect but this addin was making me angry and — IT WAS JUSTICE, DAMMIT! IT NEEDED TO GO AWAY!)
Select the “hostData“ element, delete it, and save the testrunconfig file.
Check in the file and re-run your team build. Your build should be able to publish the test results to TFS now.
What’s kinda sucky is that I haven’t figured out how to permanently fix this problem with the testrunconfig. Each time that I make a modification to the testrunconfig, I have to go through the process of deleting the “hostData“ again.
If anyone has any good ideas, let me know.
-Ben