Lab_1 0.1.1
Matrix Library
|
Public Member Functions | |
testNonEmptyXmlOutput (self) | |
testNoTestXmlOutput (self) | |
testTimestampValue (self) | |
testDefaultOutputFile (self) | |
testSuppressedXmlOutput (self) | |
testFilteredTestXmlOutput (self) | |
testShardedTestXmlOutput (self) | |
![]() | |
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) | |
![]() | |
_GetChildren (self, element) | |
Additional Inherited Members | |
![]() | |
dict | identifying_attribute |
Unit test for Google Test's XML output functionality.
|
protected |
Returns the xml output generated by running the program gtest_prog_name. Furthermore, the program's exit code must be expected_exit_code.
|
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.
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.
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.
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.
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.
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.
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.
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.