XML Reports Import
Last modified: 20 April 2023TeamCity allows you to import XML test reports using the bundled XML Test Reporting plugin.
XML Test Reporting plugin supports importing and parsing reports from the following tools:
JUnit
NUnit
Surefire
FindBugs
PMD
PMD CPD (XML report format)
It can be used with the following build runners:
Ant
Ipr
Maven2
MSBuild
NAnt
Rake
Visual Studio (sln)
Visual Studio 2003
Command Line build runner
Сonfiguring XML Report Processing
Choose report type and specify monitoring rules in the form of
+|-:path
separating them by comma or new line. Paths without+|:
prefix are treated as included. Ant-style wildcards likedir/**/*
.xml
are supported here.Check Verbose output option to enable detailed logging to build log.
For FindBugs report processing it is necessary to specify path to FindBugs installation on agent. It will be used for retrieving actual bug patterns, categories and their messages.
For FindBugs, PMD and Checkstyle code inspections reports processing you can specify maximum errors and warnings limits, exceeding which will cause the build failure. Leave these fields blank, if there are no limits.
For each of the supported build runners, the XML Report Processing settings section provides options to enable report parsing. In addition, you can initiate XML reports parsing using the Build Script Interaction with TeamCity.
XML Test Reporting plugin monitors the specified paths for reports and sends the found tests passes and code inspections data to TeamCity server. In most cases, test reports do not need to be completely written for the reporting to be started, and the reporting begins as soon as the files contain fragments that can be parsed.
Please refer to the XML Test Reporting documentation for details.
Thanks for your feedback!