TeamCity On-Premises
 
Get TeamCity On-Premises

XML Report Processing

Edit pageLast modified: 25 October 2024

The XML Report Processing build feature allows using report files produced by an external tool in TeamCity. TeamCity parses the specified files on the disk and reports the results as the build results.

The report parsing can also be initiated from within the build via service messages.

XML Report Processing supports:

  • Testing frameworks:

    • JUnit Ant task

    • Maven Surefire/Failsafe plugin

    • NUnit-Console XML reports

    • TRX reports

    • Google Test XML reports

    • XML output from CTest

  • Code inspection tools:

    • SpotBugs, formerly FindBugs (code inspections only): only SpotBugs native format is supported (see the corresponding xsd). The XML report generated by the SpotBugs Maven plugin is NOT supported: it has a completely different schema layout and elements.

    • PMD

    • Checkstyle

    • JSLint XML reports

  • Code duplicates tools:

    • PMD Copy/Paste Detector XML reports

The bundled XML Report Processing plugin monitors the specified report paths, and when the matching files are detected, they are parsed according to the report type specified. For some report types, parsing of partially saved files is supported, so reporting is started as soon as first data is available and more data is reported as it is written on the disk.

The plugin takes into account only the files updated since the build start (determined by means of the last modification file timestamp).