|
def | _GetXmlOutput (self, gtest_prog_name, extra_args, extra_env, expected_exit_code) |
|
def | _TestXmlOutput (self, gtest_prog_name, expected_xml, expected_exit_code, extra_args=None, extra_env=None) |
|
Unit test for Google Test's XML output functionality.
Definition at line 212 of file gtest_xml_output_unittest.py.
◆ _GetXmlOutput()
def gtest_xml_output_unittest.GTestXMLOutputUnitTest._GetXmlOutput |
( |
|
self, |
|
|
|
gtest_prog_name, |
|
|
|
extra_args, |
|
|
|
extra_env, |
|
|
|
expected_exit_code |
|
) |
| |
|
private |
Returns the xml output generated by running the program gtest_prog_name.
Furthermore, the program's exit code must be expected_exit_code.
Definition at line 337 of file gtest_xml_output_unittest.py.
◆ _TestXmlOutput()
def gtest_xml_output_unittest.GTestXMLOutputUnitTest._TestXmlOutput |
( |
|
self, |
|
|
|
gtest_prog_name, |
|
|
|
expected_xml, |
|
|
|
expected_exit_code, |
|
|
|
extra_args = None , |
|
|
|
extra_env = None |
|
) |
| |
|
private |
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.
Definition at line 366 of file gtest_xml_output_unittest.py.
◆ testDefaultOutputFile()
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.
Definition at line 261 of file gtest_xml_output_unittest.py.
◆ testEmptyXmlOutput()
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.
Definition at line 227 of file gtest_xml_output_unittest.py.
◆ testFilteredTestXmlOutput()
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.
Definition at line 313 of file gtest_xml_output_unittest.py.
◆ testNonEmptyXmlOutput()
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.
Definition at line 220 of file gtest_xml_output_unittest.py.
◆ testShardedTestXmlOutput()
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.
Definition at line 323 of file gtest_xml_output_unittest.py.
◆ testSuppressedXmlOutput()
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.
Definition at line 284 of file gtest_xml_output_unittest.py.
◆ testTimestampValue()
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.
Definition at line 236 of file gtest_xml_output_unittest.py.
The documentation for this class was generated from the following file: