sys.stdout.write(out)
- def startTest(self, testname):
+ def startTest(self, test):
pass
def end_test(self, testname, result, unexpected, reason=None):
arg = parts[1]
if command in ("test", "testing"):
msg_ops.control_msg(l)
- msg_ops.startTest(arg.rstrip())
+ msg_ops.startTest(subunit.RemotedTestCase(arg.rstrip()))
open_tests.append(arg.rstrip())
elif command == "time":
msg_ops.control_msg(l)
class SubunitOps(subunit.TestProtocolClient,TestsuiteEnabledTestResult):
- def startTest(self, testname):
- self._stream.write("test: %s\n" % testname)
-
def end_test(self, name, result, reason=None):
if reason:
self._stream.write("%s: %s [\n%s\n]\n" % (result, name, reason))
else:
self.output+=msg
- def startTest(self, testname):
+ def startTest(self, test):
if self.prefix is not None:
- testname = self.prefix + testname
+ test = subunit.RemotedTestCase(self.prefix + test.id())
if self.strip_ok_output:
self.output = ""
- self._ops.startTest(testname)
+ self._ops.startTest(test)
def end_test(self, testname, result, unexpected, reason):
if self.prefix is not None: