File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ # 2.1.1 (2021-12-06)
2
+
3
+ - Fix corner-case issue when no result attribute is found in google test XML output file.
4
+
1
5
# 2.1.0 (2021-12-03)
2
6
3
7
- Added support for ` GTEST_SKIP() ` skipped message from Google Test ` 1.11 ` .
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def _parse_xml(self, xml_filename):
122
122
for failure_elem in failure_elements :
123
123
failures .append (failure_elem .text )
124
124
skippeds = []
125
- if test_case .attrib [ "result" ] == "skipped" :
125
+ if test_case .attrib . get ( "result" , None ) == "skipped" :
126
126
# In gtest 1.11 a skipped message was added to
127
127
# the output file
128
128
skipped_elements = test_case .findall ("skipped" )
@@ -133,7 +133,7 @@ def _parse_xml(self, xml_filename):
133
133
# append a "skipped" keyword
134
134
if not skipped_elements :
135
135
skippeds .append ("Skipped" )
136
- if test_case .attrib [ "status" ] == "notrun" :
136
+ elif test_case .attrib . get ( "status" , None ) == "notrun" :
137
137
skippeds .append ("Disabled" )
138
138
result .append ((test_suite_name + "." + test_name , failures , skippeds ))
139
139
You can’t perform that action at this time.
0 commit comments