Merge pull request #1012 from lukas-bednar/junitxml_plugin

junitxml: align custom properties with junit format
This commit is contained in:
Ronny Pfannschmidt
2015-09-18 16:01:22 +02:00
3 changed files with 17 additions and 3 deletions
+9 -1
View File
@@ -137,7 +137,15 @@ class LogXML(object):
self.tests[-1].append(obj)
def append_custom_properties(self):
self.tests[-1].attr.__dict__.update(self.custom_properties)
if self.custom_properties:
self.tests[-1].append(
Junit.properties(
[
Junit.property(name=name, value=value)
for name, value in self.custom_properties.items()
]
)
)
self.custom_properties.clear()
def append_pass(self, report):