From 4f679be6baf051309eb46a15b5b587a1967e1732 Mon Sep 17 00:00:00 2001 From: kumar Date: Sat, 19 Mar 2011 01:15:38 -0500 Subject: Xunit plugin now shows test run time in fractions of a second (#317) --- nose/plugins/xunit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nose') diff --git a/nose/plugins/xunit.py b/nose/plugins/xunit.py index 9c86b69..89e4a56 100644 --- a/nose/plugins/xunit.py +++ b/nose/plugins/xunit.py @@ -191,7 +191,7 @@ class Xunit(Plugin): tb = ''.join(traceback.format_exception(*err)) id = test.id() self.errorlist.append( - '' + '' '<%(type)s type=%(errtype)s message=%(message)s>' '' % {'cls': self._quoteattr('.'.join(id.split('.')[:-1])), @@ -211,7 +211,7 @@ class Xunit(Plugin): self.stats['failures'] += 1 id = test.id() self.errorlist.append( - '' + '' '' '' % {'cls': self._quoteattr('.'.join(id.split('.')[:-1])), @@ -230,7 +230,7 @@ class Xunit(Plugin): id = test.id() self.errorlist.append( '' % + 'time="%(taken).3f" />' % {'cls': self._quoteattr('.'.join(id.split('.')[:-1])), 'name': self._quoteattr(id.split('.')[-1]), 'taken': taken, -- cgit v1.2.1