Easy way to output a text file into the TFS Build Summary

Easy way to output a text file into the TFS Build Summary
For example, if you want to output the results of a JavaScript Unit Test run from Chutzpah console.


  • Open the build template XAML file in VS.
  • Open the Run Tests activity.
  • From the VS Toolbox, drag and drop a WriteBuildWarning.

Note: we use Warnings rather than Messages, since a Message might be filtered out.


  • Set the message to read the contents of the text file:


IO.File.ReadAllText(String.Format("{0}\Development\Solutions\JavaScriptTestRunSummary.txt", SourcesDirectory))


  • Save and then commit the Build Template.


The CI build will run.

The summary should show the message, in a warning in the Other Errors and Warnings section.

Comments