Process NUnit result.xml and show it in Team City Web GUI

拈花ヽ惹草 提交于 2019-11-29 10:42:12
sll

This could be done using importdata TeamCity message, this is really helpful when you are running NUnit tests manually executing nunit-console.exe from an MSBuild script, for instance using NUnit MSBuild Community Task, but keep in mind that TeamCity provides built in NUnit tests runner so you do not need this low level TeamCity scripting. Anyway you can import report in this way:

<Message 
         Text="##teamcity[importData type='nunit' path='...\TestResults.xml']" 
         Importance="High"/>

See Importing XML Reports

If you prefer to run code coverage, code inspection, test tools or duplicate finders directly from build script, not as a build runner, you can use the importData service messages to import generated xml reports into TeamCity.

The functionality was still there, found it by accident when looking at another build configuration. Importing an XML is now a "Build Feature", see:

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