Don’t hardcode that build option
I have been using the ExternalTestRunner 2010 Build activity I wrote. I realised that at least one of the parameters I need to set, the ProjectCollection used to publish the test results, was hard coded in my sample. It was set in the form http://myserver:8080/tfs/MyCollection This is not that sensible, as this value is available using the build API as BuildDetail.BuildServer.TeamProjectCollection.Uri.ToString() It makes no sense to hard code the name of the server if the build system already knows it....