Putting Console Output from NUnit tests into the xml results

倾然丶 夕夏残阳落幕 提交于 2019-12-05 21:17:52

Do you merge? NUnit generates a xml file which you must merge into the build protocol configure the merge publisher before seeing any output.

<merge>
  <files>
    <file>Nunit*.xml</file>
  </files>
</merge>

Addendum If you can write it to a separate file foo.txt you can always merge into your build protocol. As written above you can easily merge xml-files to your build protocol, so the only question remains is: how to convert you foo.txt into a foo.xml.? In NAnt you could load the text file using

  <loadproperty property="myprop" file="foo.txt"/>
  <xmlpoke file="blank.xml" value="${myprop}" xpath="x/y/z" />

Compare also with http://www.cruisecontrolnet.org/projects/ccnet/wiki/NUnit_Task and http://confluence.public.thoughtworks.org/display/CCNET/Using+CruiseControl.NET+with+NUnit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!