Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
gtest_xml_output_unittest.GTestXMLOutputUnitTest Class Reference
Inheritance diagram for gtest_xml_output_unittest.GTestXMLOutputUnitTest:
gtest_xml_test_utils.GTestXMLTestCase

Public Member Functions

 testNonEmptyXmlOutput (self)
 
 testNoTestXmlOutput (self)
 
 testTimestampValue (self)
 
 testDefaultOutputFile (self)
 
 testSuppressedXmlOutput (self)
 
 testFilteredTestXmlOutput (self)
 
 testShardedTestXmlOutput (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, extra_env, expected_exit_code)
 
 _TestXmlOutput (self, gtest_prog_name, expected_xml, expected_exit_code, extra_args=None, extra_env=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,
extra_env,
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,
extra_env = 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.

◆ 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.

◆ testNoTestXmlOutput()

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

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

◆ testShardedTestXmlOutput()

gtest_xml_output_unittest.GTestXMLOutputUnitTest.testShardedTestXmlOutput ( self)
Verifies XML output when run using multiple shards.

Runs a test program that executes only one shard and verifies that tests
from other shards do not show up in the XML output.

◆ 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: