- 3.0.1 core module.
gtest_xml_output_unittest Namespace Reference

Classes

class  GTestXMLOutputUnitTest
 

Variables

string GTEST_FILTER_FLAG = '--gtest_filter'
 
string GTEST_LIST_TESTS_FLAG = '--gtest_list_tests'
 
string GTEST_OUTPUT_FLAG = '--gtest_output'
 
string GTEST_DEFAULT_OUTPUT_FILE = 'test_detail.xml'
 
string GTEST_PROGRAM_NAME = 'gtest_xml_output_unittest_'
 
string NO_STACKTRACE_SUPPORT_FLAG = '--no_stacktrace_support'
 
string TOTAL_SHARDS_ENV_VAR = 'GTEST_TOTAL_SHARDS'
 
string SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX'
 
string SHARD_STATUS_FILE_ENV_VAR = 'GTEST_SHARD_STATUS_FILE'
 
 SUPPORTS_STACK_TRACES = NO_STACKTRACE_SUPPORT_FLAGnotinsys.argv
 
string STACK_TRACE_TEMPLATE = '\nStack trace:\n*'
 
string EXPECTED_NON_EMPTY_XML
 
string EXPECTED_FILTERED_TEST_XML
 
string EXPECTED_SHARDED_TEST_XML
 
string EXPECTED_EMPTY_XML
 
 GTEST_PROGRAM_PATH = gtest_test_utils.GetTestExecutablePath(GTEST_PROGRAM_NAME)
 
string SUPPORTS_TYPED_TESTS = 'TypedTest'
 
 capture_stderr
 

Variable Documentation

string gtest_xml_output_unittest.GTEST_FILTER_FLAG = '--gtest_filter'
string gtest_xml_output_unittest.GTEST_LIST_TESTS_FLAG = '--gtest_list_tests'
string gtest_xml_output_unittest.GTEST_OUTPUT_FLAG = '--gtest_output'
string gtest_xml_output_unittest.GTEST_DEFAULT_OUTPUT_FILE = 'test_detail.xml'
string gtest_xml_output_unittest.GTEST_PROGRAM_NAME = 'gtest_xml_output_unittest_'
string gtest_xml_output_unittest.NO_STACKTRACE_SUPPORT_FLAG = '--no_stacktrace_support'
string gtest_xml_output_unittest.TOTAL_SHARDS_ENV_VAR = 'GTEST_TOTAL_SHARDS'
string gtest_xml_output_unittest.SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX'
string gtest_xml_output_unittest.SHARD_STATUS_FILE_ENV_VAR = 'GTEST_SHARD_STATUS_FILE'
gtest_xml_output_unittest.SUPPORTS_STACK_TRACES = NO_STACKTRACE_SUPPORT_FLAGnotinsys.argv
string gtest_xml_output_unittest.STACK_TRACE_TEMPLATE = '\nStack trace:\n*'
string gtest_xml_output_unittest.EXPECTED_NON_EMPTY_XML
string gtest_xml_output_unittest.EXPECTED_FILTERED_TEST_XML
Initial value:
1 = """<?xml version="1.0" encoding="UTF-8"?>
2 <testsuites tests="1" failures="0" disabled="0" errors="0" time="*"
3  timestamp="*" name="AllTests" ad_hoc_property="42">
4  <testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0"
5  errors="0" time="*">
6  <testcase name="Succeeds" status="run" result="completed" time="*" classname="SuccessfulTest"/>
7  </testsuite>
8 </testsuites>"""
string gtest_xml_output_unittest.EXPECTED_SHARDED_TEST_XML
Initial value:
1 = """<?xml version="1.0" encoding="UTF-8"?>
2 <testsuites tests="3" failures="0" disabled="0" errors="0" time="*" timestamp="*" name="AllTests" ad_hoc_property="42">
3  <testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0" errors="0" time="*">
4  <testcase name="Succeeds" status="run" result="completed" time="*" classname="SuccessfulTest"/>
5  </testsuite>
6  <testsuite name="PropertyRecordingTest" tests="1" failures="0" disabled="0" errors="0" time="*" SetUpTestSuite="yes" TearDownTestSuite="aye">
7  <testcase name="TwoValuesForOneKeyUsesLastValue" status="run" result="completed" time="*" classname="PropertyRecordingTest">
8  <properties>
9  <property name="key_1" value="2"/>
10  </properties>
11  </testcase>
12  </testsuite>
13  <testsuite name="Single/ValueParamTest" tests="1" failures="0" disabled="0" errors="0" time="*">
14  <testcase name="AnotherTestThatHasValueParamAttribute/0" value_param="33" status="run" result="completed" time="*" classname="Single/ValueParamTest" />
15  </testsuite>
16 </testsuites>"""
string gtest_xml_output_unittest.EXPECTED_EMPTY_XML
Initial value:
1 = """<?xml version="1.0" encoding="UTF-8"?>
2 <testsuites tests="0" failures="0" disabled="0" errors="0" time="*"
3  timestamp="*" name="AllTests">
4 </testsuites>"""
gtest_xml_output_unittest.GTEST_PROGRAM_PATH = gtest_test_utils.GetTestExecutablePath(GTEST_PROGRAM_NAME)
string gtest_xml_output_unittest.SUPPORTS_TYPED_TESTS = 'TypedTest'
gtest_xml_output_unittest.capture_stderr