addons/gut/junit_xml_export.gd

Inherits: RefCounted

Exposes functionality to export results of a test run in JUnit XML format.

Description

This class exposes two methods for exporting GUT test results to XML. One returns a string representing the XML, and the other writes it to a file.

Methods

String

get_results_xml(gut: GutMain)

int

write_file(gut: GutMain, path: String)


Method Descriptions

String get_results_xml(gut: GutMain) 🔗

Takes in an instance of GutMain and returns a string of XML representing the results of the run.


int write_file(gut: GutMain, path: String) 🔗

Takes in an instance of GutMain and writes test results to an XML file specified by path. Return value is an error code forwarded from the call to FileAccess.open to write to path.