Monero
Loading...
Searching...
No Matches
gtest_xml_output_unittest.GTestXMLOutputUnitTest Class Reference
Inheritance diagram for gtest_xml_output_unittest.GTestXMLOutputUnitTest:
Collaboration diagram for gtest_xml_output_unittest.GTestXMLOutputUnitTest:

Public Member Functions

 testNonEmptyXmlOutput (self)
 testEmptyXmlOutput (self)
 testTimestampValue (self)
 testDefaultOutputFile (self)
 testSuppressedXmlOutput (self)
 testFilteredTestXmlOutput (self)
Public Member Functions inherited from gtest_xml_test_utils.GTestXMLTestCase
 AssertEquivalentNodes (self, expected_node, actual_node)
 NormalizeXml (self, element)

Protected Member Functions

 _GetXmlOutput (self, gtest_prog_name, extra_args, expected_exit_code)
 _TestXmlOutput (self, gtest_prog_name, expected_xml, expected_exit_code, extra_args=None)
Protected Member Functions inherited from gtest_xml_test_utils.GTestXMLTestCase
 _GetChildren (self, element)

Additional Inherited Members

Static Public Attributes inherited from gtest_xml_test_utils.GTestXMLTestCase
dict identifying_attribute

Detailed Description

Unit test for Google Test's XML output functionality.

Member Function Documentation

◆ _GetXmlOutput()

gtest_xml_output_unittest.GTestXMLOutputUnitTest._GetXmlOutput ( self,
gtest_prog_name,
extra_args,
expected_exit_code )
protected
Returns the xml output generated by running the program gtest_prog_name.
Furthermore, the program's exit code must be expected_exit_code.

◆ _TestXmlOutput()

gtest_xml_output_unittest.GTestXMLOutputUnitTest._TestXmlOutput ( self,
gtest_prog_name,
expected_xml,
expected_exit_code,
extra_args = None )
protected
Asserts that the XML document generated by running the program
gtest_prog_name matches expected_xml, a string containing another
XML document.  Furthermore, the program's exit code must be
expected_exit_code.

◆ testDefaultOutputFile()

gtest_xml_output_unittest.GTestXMLOutputUnitTest.testDefaultOutputFile ( self)
Confirms that Google Test produces an XML output file with the expected
default name if no name is explicitly specified.

◆ testEmptyXmlOutput()

gtest_xml_output_unittest.GTestXMLOutputUnitTest.testEmptyXmlOutput ( self)
Verifies XML output for a Google Test binary without actual tests.

Runs a test program that generates an empty XML output, and
tests that the XML output is expected.

◆ testFilteredTestXmlOutput()

gtest_xml_output_unittest.GTestXMLOutputUnitTest.testFilteredTestXmlOutput ( self)
Verifies XML output when a filter is applied.

Runs a test program that executes only some tests and verifies that
non-selected tests do not show up in the XML output.

◆ testNonEmptyXmlOutput()

gtest_xml_output_unittest.GTestXMLOutputUnitTest.testNonEmptyXmlOutput ( self)
Runs a test program that generates a non-empty XML output, and
tests that the XML output is expected.

◆ testSuppressedXmlOutput()

gtest_xml_output_unittest.GTestXMLOutputUnitTest.testSuppressedXmlOutput ( self)
Tests that no XML file is generated if the default XML listener is
shut down before RUN_ALL_TESTS is invoked.

◆ testTimestampValue()

gtest_xml_output_unittest.GTestXMLOutputUnitTest.testTimestampValue ( self)
Checks whether the timestamp attribute in the XML output is valid.

Runs a test program that generates an empty XML output, and checks if
the timestamp attribute in the testsuites tag is valid.

The documentation for this class was generated from the following file: