Failure when publishing test results to Team Build

Hi all

I get this error after running some tests in FB:

(CoreCompile target) ->
  c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018: The "FBCmd" task failed unexpectedly.
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018: FinalBuilder.TeamBuildProxy.TeamProxyException: Failed to publish test results from FinalBuilder : MSTest publish failed with exit code 1 : String was not recognized as a valid DateTime. ---> FinalBuilder.TestResultWrapper.PublishException: MSTest publish failed with exit code 1 : String was not recognized as a valid DateTime.
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    at FinalBuilder.TestResultWrapper.DummyTestRun.Publish(String tfsServer, String buildName, String teamProject, Int32 visualStudioVersion)
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    at FinalBuilder.TeamBuildProxy.MetricSummary.PublishTestResults(String tfsServer, String buildId, String teamProject, Int32 visualStudioVer)
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    --- End of inner exception stack trace ---
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    at FinalBuilder.TeamBuildProxy.MetricSummary.PublishTestResults(String tfsServer, String buildId, String teamProject, Int32 visualStudioVer)
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    at FinalBuilder.TeamBuildProxy.TeamBuildProxy2008.SendMetrics(MetricSummary metrics)
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    at FinalBuilder.FBCmd.TeamBuildAfterProject(String projFileName, Boolean success)
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    at FinalBuilder.FBCmd.Execute()
c:\builds\Jynnji\Interops_Full\BuildType\TFSBuild.proj(202,5): error MSB4018:    at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

    3 Warning(s)
    1 Error(s)

Which results in a build error, the strange thing is that the results DO get published.

Any ideas where to start?

Kev

Hi Kevin

A strange one indeed (the fact that mstest reports an error and still actually publishes the tests).

The way this works is we generate an xml file in the format required by mstest and then execute mstest. To figure out what is happening we really need to see the xml file. Please install this build :

https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1745.exe

What this build does differently is it does not delete the xml file when mstest reports a non zero return code, and the error exception will include the name of the xml file. Please send the file to support at finalbuilder dot com so we can see what it is failing on.