DebugClients/Python/DCTestResult.py

changeset 1499
b4d0457afb15
parent 1166
a94b0a2fafd7
child 1509
c0b5e693b0eb
--- a/DebugClients/Python/DCTestResult.py	Sat Dec 17 16:03:53 2011 +0100
+++ b/DebugClients/Python/DCTestResult.py	Sat Dec 17 19:13:19 2011 +0100
@@ -41,7 +41,7 @@
         TestResult.addFailure(self, test, err)
         tracebackLines = self._exc_info_to_string(err, test)
         self.parent.write('%s%s\n' % (ResponseUTTestFailed,
-            unicode((unicode(test), tracebackLines))))
+            unicode((unicode(test), tracebackLines, test.id()))))
         
     def addError(self, test, err):
         """
@@ -53,7 +53,7 @@
         TestResult.addError(self, test, err)
         tracebackLines = self._exc_info_to_string(err, test)
         self.parent.write('%s%s\n' % (ResponseUTTestErrored,
-            unicode((unicode(test), tracebackLines))))
+            unicode((unicode(test), tracebackLines, test.id()))))
         
     def addSkip(self, test, reason):
         """
@@ -64,7 +64,7 @@
         """
         TestResult.addSkip(self, test, reason)
         self.parent.write('%s%s\n' % (ResponseUTTestSkipped,
-            str((str(test), reason))))
+            str((str(test), reason, test.id()))))
         
     def addExpectedFailure(self, test, err):
         """
@@ -76,7 +76,7 @@
         TestResult.addExpectedFailure(self, test, err)
         tracebackLines = self._exc_info_to_string(err, test)
         self.parent.write('%s%s\n' % (ResponseUTTestFailedExpected,
-            str((str(test), tracebackLines))))
+            str((str(test), tracebackLines, test.id()))))
         
     def addUnexpectedSuccess(self, test):
         """
@@ -85,7 +85,8 @@
         @param test reference to the test object
         """
         TestResult.addUnexpectedSuccess(self, test)
-        self.parent.write('%s%s\n' % (ResponseUTTestSucceededUnexpected, str(test)))
+        self.parent.write('%s%s\n' % (ResponseUTTestSucceededUnexpected,
+            str((str(test), test.id()))))
         
     def startTest(self, test):
         """

eric ide

mercurial