Public Member Functions | Private Member Functions | List of all members
gtest_xml_output_unittest.GTestXMLOutputUnitTest Class Reference
Inheritance diagram for gtest_xml_output_unittest.GTestXMLOutputUnitTest:
Inheritance graph
[legend]

Public Member Functions

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

Private Member Functions

def _GetXmlOutput (self, gtest_prog_name, extra_args, extra_env, expected_exit_code)
 
def _GetXmlOutput (self, gtest_prog_name, extra_args, extra_env, expected_exit_code)
 
def _GetXmlOutput (self, gtest_prog_name, extra_args, extra_env, expected_exit_code)
 
def _GetXmlOutput (self, gtest_prog_name, extra_args, extra_env, expected_exit_code)
 
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)
 
def _TestXmlOutput (self, gtest_prog_name, expected_xml, expected_exit_code, extra_args=None, extra_env=None)
 
def _TestXmlOutput (self, gtest_prog_name, expected_xml, expected_exit_code, extra_args=None, extra_env=None)
 
def _TestXmlOutput (self, gtest_prog_name, expected_xml, expected_exit_code, extra_args=None, extra_env=None)
 
def _TestXmlOutput (self, gtest_prog_name, expected_xml, expected_exit_code, extra_args=None, extra_env=None)
 

Additional Inherited Members

- Static Public Attributes inherited from gtest_xml_test_utils.GTestXMLTestCase
dictionary identifying_attribute
 

Detailed Description

Unit test for Google Test's XML output functionality.

Definition at line 214 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

Member Function Documentation

◆ _GetXmlOutput() [1/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ _GetXmlOutput() [2/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ _GetXmlOutput() [3/5]

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 339 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ _GetXmlOutput() [4/5]

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 355 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ _GetXmlOutput() [5/5]

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 365 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ _TestXmlOutput() [1/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ _TestXmlOutput() [2/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ _TestXmlOutput() [3/5]

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 368 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ _TestXmlOutput() [4/5]

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 384 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ _TestXmlOutput() [5/5]

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 394 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testDefaultOutputFile() [1/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testDefaultOutputFile() [2/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testDefaultOutputFile() [3/5]

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 263 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testDefaultOutputFile() [4/5]

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 279 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ testDefaultOutputFile() [5/5]

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 289 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testEmptyXmlOutput() [1/4]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testEmptyXmlOutput() [2/4]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testEmptyXmlOutput() [3/4]

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 229 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testEmptyXmlOutput() [4/4]

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 245 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ testFilteredTestXmlOutput() [1/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testFilteredTestXmlOutput() [2/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testFilteredTestXmlOutput() [3/5]

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 315 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testFilteredTestXmlOutput() [4/5]

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 331 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ testFilteredTestXmlOutput() [5/5]

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 341 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testNonEmptyXmlOutput() [1/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testNonEmptyXmlOutput() [2/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testNonEmptyXmlOutput() [3/5]

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 222 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testNonEmptyXmlOutput() [4/5]

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 238 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ testNonEmptyXmlOutput() [5/5]

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 248 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testNoTestXmlOutput()

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

Definition at line 255 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testShardedTestXmlOutput() [1/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testShardedTestXmlOutput() [2/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testShardedTestXmlOutput() [3/5]

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 325 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testShardedTestXmlOutput() [4/5]

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 341 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ testShardedTestXmlOutput() [5/5]

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 351 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testSuppressedXmlOutput() [1/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testSuppressedXmlOutput() [2/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testSuppressedXmlOutput() [3/5]

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 286 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testSuppressedXmlOutput() [4/5]

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 302 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ testSuppressedXmlOutput() [5/5]

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 312 of file googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testTimestampValue() [1/5]

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 protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testTimestampValue() [2/5]

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 bloaty/third_party/protobuf/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testTimestampValue() [3/5]

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 238 of file bloaty/third_party/googletest/googletest/test/gtest_xml_output_unittest.py.

◆ testTimestampValue() [4/5]

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 254 of file boringssl-with-bazel/src/third_party/googletest/test/gtest_xml_output_unittest.py.

◆ testTimestampValue() [5/5]

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 264 of file googletest/googletest/test/gtest_xml_output_unittest.py.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40