If after setting up a new build box you discover your build is failing because the test results are failing to get published, e.g:-
Waiting to publish... (TaskId:193)
Publishing results of test run ..... to ......
.Publish operation failed. (TaskId:193)
Publish operation failed. (TaskId:193)
... then you have not given the TFS service account permissions on the drop location of your build.