reintroduce junitxml report order and debug cleanups

This commit is contained in:
Ronny Pfannschmidt
2015-10-10 19:35:58 +02:00
parent 0528e5b45f
commit 5f5a7995b9
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,6 @@ import pytest
def runandparse(testdir, *args):
resultpath = testdir.tmpdir.join("junit.xml")
result = testdir.runpytest("--junitxml=%s" % resultpath, *args)
print(resultpath.read())
xmldoc = minidom.parse(str(resultpath))
return result, DomNode(xmldoc)
@@ -61,6 +60,7 @@ class DomNode(object):
return node.value
def assert_attr(self, **kwargs):
__tracebackhide__ = True
return assert_attr(self.__node, **kwargs)
def toxml(self):