locked
Debugging the publishing of test results RRS feed

  • Question

  • I'm using the NUnit4TeamBuild app to publish legacy NUnit tests to TFS2008; however, when it makes a call to the TFS build publishing service like this:

    using (var client = new PublishTestResultsBuildService2V1.Service2SoapClient())
    {
        string resultsDirectory;
        var error = client.PrepareToPublish(buildId, runId, overwrite, out resultsDirectory);
        if (error != null)
        {
            throw new InvalidOperationException(string.Concat("PrepareToPublish failed: ", error.Name));
        }
        return resultsDirectory;
    }
    

    the path returned by resultsDirectory is not fully created. It should be in the form \\myserver\drops\MyBuild_20090502.1\TestResults\SOME_GUID_HERE\, but the final SOME_GUID_HERE sub-folder is not being created, which means that when I try to actually publish the results, they don't appear on the server and the publication fails.

    Is there anyway I can diagnose what the web service is doing wrong?
    Thursday, October 1, 2009 2:12 AM