Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
✨ Distinguish between failure and error in test result
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-codes committed Jul 28, 2023
1 parent 220c780 commit 4ae202d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/testController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,13 @@ export class TestController {
new vscode.TestMessage(err.message),
new vscode.TestMessage(summary),
];
const duration = Date.now() - start;

run.failed(test, messages, Date.now() - start);
if (messageArr.find((elem: string) => elem === "F")) {
run.failed(test, messages, duration);
} else {
run.errored(test, messages, duration);
}
}
}

Expand Down

0 comments on commit 4ae202d

Please sign in to comment.