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
This is not that sensible, as this value is available using the build API as
It makes no sense to hard code the name of the server if the build system already knows it.
This simple change means that the build templates can be fair easier past between Team Projects Collections
Read the complete post at http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/08/26/don-t-hardcode-that-build-option.aspx