def sendResult(self, test, outcome, trace = None):
if _channel is not None:
tb = None
message = None
if trace is not None:
traceback.print_exc()
formatted = traceback.format_exception(*trace)
# Remove the 'Traceback (most recent call last)'
formatted = formatted[1:]
tb = ''.join(formatted)
message = str(trace[1])
_channel.send_event(
name='result',
outcome=outcome,
traceback = tb,
message = message,
test = test.id()
)
visualstudio_py_testlauncher.py 文件源码
python
阅读 125
收藏 0
点赞 0
评论 0
评论列表
文章目录