|
|
|
@ -65,11 +65,11 @@ else:
|
|
|
|
|
sys.argv.remove(NO_STACKTRACE_SUPPORT_FLAG)
|
|
|
|
|
|
|
|
|
|
EXPECTED_NON_EMPTY_XML = """<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<testsuites tests="24" failures="4" disabled="2" errors="0" time="*" timestamp="*" name="AllTests" ad_hoc_property="42">
|
|
|
|
|
<testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuites tests="26" failures="5" disabled="2" errors="0" time="*" timestamp="*" name="AllTests" ad_hoc_property="42">
|
|
|
|
|
<testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="Succeeds" status="run" result="completed" time="*" timestamp="*" classname="SuccessfulTest"/>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="FailedTest" tests="1" failures="1" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="FailedTest" tests="1" failures="1" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="Fails" status="run" result="completed" time="*" timestamp="*" classname="FailedTest">
|
|
|
|
|
<failure message="gtest_xml_output_unittest_.cc:*
Expected equality of these values:
 1
 2" type=""><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
|
Expected equality of these values:
|
|
|
|
@ -77,7 +77,7 @@ Expected equality of these values:
|
|
|
|
|
2%(stack)s]]></failure>
|
|
|
|
|
</testcase>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="MixedResultTest" tests="3" failures="1" disabled="1" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="MixedResultTest" tests="3" failures="1" disabled="1" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="Succeeds" status="run" result="completed" time="*" timestamp="*" classname="MixedResultTest"/>
|
|
|
|
|
<testcase name="Fails" status="run" result="completed" time="*" timestamp="*" classname="MixedResultTest">
|
|
|
|
|
<failure message="gtest_xml_output_unittest_.cc:*
Expected equality of these values:
 1
 2" type=""><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
@ -91,27 +91,43 @@ Expected equality of these values:
|
|
|
|
|
</testcase>
|
|
|
|
|
<testcase name="DISABLED_test" status="notrun" result="suppressed" time="*" timestamp="*" classname="MixedResultTest"/>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="XmlQuotingTest" tests="1" failures="1" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="XmlQuotingTest" tests="1" failures="1" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="OutputsCData" status="run" result="completed" time="*" timestamp="*" classname="XmlQuotingTest">
|
|
|
|
|
<failure message="gtest_xml_output_unittest_.cc:*
Failed
XML output: <?xml encoding="utf-8"><top><![CDATA[cdata text]]></top>" type=""><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
|
Failed
|
|
|
|
|
XML output: <?xml encoding="utf-8"><top><![CDATA[cdata text]]>]]><![CDATA[</top>%(stack)s]]></failure>
|
|
|
|
|
</testcase>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="InvalidCharactersTest" tests="1" failures="1" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="InvalidCharactersTest" tests="1" failures="1" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="InvalidCharactersInMessage" status="run" result="completed" time="*" timestamp="*" classname="InvalidCharactersTest">
|
|
|
|
|
<failure message="gtest_xml_output_unittest_.cc:*
Failed
Invalid characters in brackets []" type=""><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
|
Failed
|
|
|
|
|
Invalid characters in brackets []%(stack)s]]></failure>
|
|
|
|
|
</testcase>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="DisabledTest" tests="1" failures="0" disabled="1" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="DisabledTest" tests="1" failures="0" disabled="1" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="DISABLED_test_not_run" status="notrun" result="suppressed" time="*" timestamp="*" classname="DisabledTest"/>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="SkippedTest" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="Skipped" status="run" result="skipped" time="*" timestamp="*" classname="SkippedTest"/>
|
|
|
|
|
<testsuite name="SkippedTest" tests="3" failures="1" disabled="0" skipped="2" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="Skipped" status="run" result="skipped" time="*" timestamp="*" classname="SkippedTest">
|
|
|
|
|
<skipped message="gtest_xml_output_unittest_.cc:*
"><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
|
%(stack)s]]></skipped>
|
|
|
|
|
</testcase>
|
|
|
|
|
<testcase name="SkippedWithMessage" status="run" result="skipped" time="*" timestamp="*" classname="SkippedTest">
|
|
|
|
|
<skipped message="gtest_xml_output_unittest_.cc:*
It is good practice to tell why you skip a test."><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
|
It is good practice to tell why you skip a test.%(stack)s]]></skipped>
|
|
|
|
|
</testcase>
|
|
|
|
|
<testcase name="SkippedAfterFailure" status="run" result="completed" time="*" timestamp="*" classname="SkippedTest">
|
|
|
|
|
<failure message="gtest_xml_output_unittest_.cc:*
Expected equality of these values:
 1
 2" type=""><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
|
Expected equality of these values:
|
|
|
|
|
1
|
|
|
|
|
2%(stack)s]]></failure>
|
|
|
|
|
<skipped message="gtest_xml_output_unittest_.cc:*
It is good practice to tell why you skip a test."><![CDATA[gtest_xml_output_unittest_.cc:*
|
|
|
|
|
It is good practice to tell why you skip a test.%(stack)s]]></skipped>
|
|
|
|
|
</testcase>
|
|
|
|
|
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="PropertyRecordingTest" tests="4" failures="0" disabled="0" errors="0" time="*" timestamp="*" SetUpTestSuite="yes" TearDownTestSuite="aye">
|
|
|
|
|
<testsuite name="PropertyRecordingTest" tests="4" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*" SetUpTestSuite="yes" TearDownTestSuite="aye">
|
|
|
|
|
<testcase name="OneProperty" status="run" result="completed" time="*" timestamp="*" classname="PropertyRecordingTest">
|
|
|
|
|
<properties>
|
|
|
|
|
<property name="key_1" value="1"/>
|
|
|
|
@ -135,7 +151,7 @@ Invalid characters in brackets []%(stack)s]]></failure>
|
|
|
|
|
</properties>
|
|
|
|
|
</testcase>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="NoFixtureTest" tests="3" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="NoFixtureTest" tests="3" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="RecordProperty" status="run" result="completed" time="*" timestamp="*" classname="NoFixtureTest">
|
|
|
|
|
<properties>
|
|
|
|
|
<property name="key" value="1"/>
|
|
|
|
@ -152,22 +168,22 @@ Invalid characters in brackets []%(stack)s]]></failure>
|
|
|
|
|
</properties>
|
|
|
|
|
</testcase>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="Single/ValueParamTest" tests="4" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="Single/ValueParamTest" tests="4" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="HasValueParamAttribute/0" value_param="33" status="run" result="completed" time="*" timestamp="*" classname="Single/ValueParamTest" />
|
|
|
|
|
<testcase name="HasValueParamAttribute/1" value_param="42" status="run" result="completed" time="*" timestamp="*" classname="Single/ValueParamTest" />
|
|
|
|
|
<testcase name="AnotherTestThatHasValueParamAttribute/0" value_param="33" status="run" result="completed" time="*" timestamp="*" classname="Single/ValueParamTest" />
|
|
|
|
|
<testcase name="AnotherTestThatHasValueParamAttribute/1" value_param="42" status="run" result="completed" time="*" timestamp="*" classname="Single/ValueParamTest" />
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="TypedTest/0" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="TypedTest/0" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="HasTypeParamAttribute" type_param="*" status="run" result="completed" time="*" timestamp="*" classname="TypedTest/0" />
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="TypedTest/1" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="TypedTest/1" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="HasTypeParamAttribute" type_param="*" status="run" result="completed" time="*" timestamp="*" classname="TypedTest/1" />
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="Single/TypeParameterizedTestSuite/0" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="Single/TypeParameterizedTestSuite/0" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="HasTypeParamAttribute" type_param="*" status="run" result="completed" time="*" timestamp="*" classname="Single/TypeParameterizedTestSuite/0" />
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="Single/TypeParameterizedTestSuite/1" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="Single/TypeParameterizedTestSuite/1" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="HasTypeParamAttribute" type_param="*" status="run" result="completed" time="*" timestamp="*" classname="Single/TypeParameterizedTestSuite/1" />
|
|
|
|
|
</testsuite>
|
|
|
|
|
</testsuites>""" % {
|
|
|
|
@ -177,7 +193,7 @@ Invalid characters in brackets []%(stack)s]]></failure>
|
|
|
|
|
EXPECTED_FILTERED_TEST_XML = """<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<testsuites tests="1" failures="0" disabled="0" errors="0" time="*"
|
|
|
|
|
timestamp="*" name="AllTests" ad_hoc_property="42">
|
|
|
|
|
<testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0"
|
|
|
|
|
<testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0" skipped="0"
|
|
|
|
|
errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="Succeeds" status="run" result="completed" time="*" timestamp="*" classname="SuccessfulTest"/>
|
|
|
|
|
</testsuite>
|
|
|
|
@ -185,18 +201,18 @@ EXPECTED_FILTERED_TEST_XML = """<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
EXPECTED_SHARDED_TEST_XML = """<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<testsuites tests="3" failures="0" disabled="0" errors="0" time="*" timestamp="*" name="AllTests" ad_hoc_property="42">
|
|
|
|
|
<testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testsuite name="SuccessfulTest" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="Succeeds" status="run" result="completed" time="*" timestamp="*" classname="SuccessfulTest"/>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="PropertyRecordingTest" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*" SetUpTestSuite="yes" TearDownTestSuite="aye">
|
|
|
|
|
<testcase name="TwoValuesForOneKeyUsesLastValue" status="run" result="completed" time="*" timestamp="*" classname="PropertyRecordingTest">
|
|
|
|
|
<testsuite name="PropertyRecordingTest" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*" SetUpTestSuite="yes" TearDownTestSuite="aye">
|
|
|
|
|
<testcase name="IntValuedProperty" status="run" result="completed" time="*" timestamp="*" classname="PropertyRecordingTest">
|
|
|
|
|
<properties>
|
|
|
|
|
<property name="key_1" value="2"/>
|
|
|
|
|
<property name="key_int" value="1"/>
|
|
|
|
|
</properties>
|
|
|
|
|
</testcase>
|
|
|
|
|
</testsuite>
|
|
|
|
|
<testsuite name="Single/ValueParamTest" tests="1" failures="0" disabled="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="AnotherTestThatHasValueParamAttribute/0" value_param="33" status="run" result="completed" time="*" timestamp="*" classname="Single/ValueParamTest" />
|
|
|
|
|
<testsuite name="Single/ValueParamTest" tests="1" failures="0" disabled="0" skipped="0" errors="0" time="*" timestamp="*">
|
|
|
|
|
<testcase name="HasValueParamAttribute/0" value_param="33" status="run" result="completed" time="*" timestamp="*" classname="Single/ValueParamTest" />
|
|
|
|
|
</testsuite>
|
|
|
|
|
</testsuites>"""
|
|
|
|
|
|
|
|
|
|