- 3.0.1 core module.
|
Public Member Functions | |
def | testNonEmptyXmlOutput (self) |
def | testEmptyXmlOutput (self) |
def | testTimestampValue (self) |
def | testDefaultOutputFile (self) |
def | testSuppressedXmlOutput (self) |
def | testFilteredTestXmlOutput (self) |
def | testShardedTestXmlOutput (self) |
Public Member Functions inherited from gtest_xml_test_utils.GTestXMLTestCase | |
def | AssertEquivalentNodes (self, expected_node, actual_node) |
def | NormalizeXml (self, element) |
Additional Inherited Members | |
Static Public Attributes inherited from gtest_xml_test_utils.GTestXMLTestCase | |
dictionary | identifying_attribute |
Unit test for Google Test's XML output functionality.
def 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.
References gtest_xml_output_unittest.GTestXMLOutputUnitTest._TestXmlOutput().
def 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.
References gtest_xml_output_unittest.GTestXMLOutputUnitTest._TestXmlOutput().
def 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.
References gtest_xml_output_unittest.GTestXMLOutputUnitTest._GetXmlOutput().
def 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.
References gtest_test_utils.GetTempDir(), and gtest_test_utils.GetTestExecutablePath().
def 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.
References gtest_test_utils.GetTempDir().
def 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.
References gtest_xml_output_unittest.GTestXMLOutputUnitTest._TestXmlOutput().
def 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.
References gtest_xml_output_unittest.GTestXMLOutputUnitTest._GetXmlOutput(), gtest_xml_output_unittest.GTestXMLOutputUnitTest._TestXmlOutput(), gtest_xml_test_utils.GTestXMLTestCase.AssertEquivalentNodes(), gtest_test_utils.GetTempDir(), gtest_test_utils.GetTestExecutablePath(), gtest_test_utils.Main(), and gtest_xml_test_utils.GTestXMLTestCase.NormalizeXml().