mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
testing: add errored state
This commit is contained in:
@@ -355,6 +355,11 @@ class TestRunTracker extends Disposable {
|
||||
started: guardTestMutation(test => {
|
||||
this.proxy.$updateTestStateInRun(runId, taskId, TestId.fromExtHostTestItem(test, ctrlId).toString(), TestResultState.Running);
|
||||
}),
|
||||
errored: guardTestMutation((test, messages, duration) => {
|
||||
this.proxy.$appendTestMessagesInRun(runId, taskId, TestId.fromExtHostTestItem(test, ctrlId).toString(),
|
||||
messages instanceof Array ? messages.map(Convert.TestMessage.from) : [Convert.TestMessage.from(messages)]);
|
||||
this.proxy.$updateTestStateInRun(runId, taskId, TestId.fromExtHostTestItem(test, ctrlId).toString(), TestResultState.Errored, duration);
|
||||
}),
|
||||
failed: guardTestMutation((test, messages, duration) => {
|
||||
this.proxy.$appendTestMessagesInRun(runId, taskId, TestId.fromExtHostTestItem(test, ctrlId).toString(),
|
||||
messages instanceof Array ? messages.map(Convert.TestMessage.from) : [Convert.TestMessage.from(messages)]);
|
||||
|
||||
Reference in New Issue
Block a user