mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
eng - print test failure to renderer console for easy reveal in dev tools
This commit is contained in:
@@ -243,11 +243,19 @@ function runTests(opts) {
|
||||
mocha.reporter(IPCReporter);
|
||||
}
|
||||
|
||||
mocha.run(() => {
|
||||
const runner = mocha.run(() => {
|
||||
createCoverageReport(opts).then(() => {
|
||||
ipcRenderer.send('all done');
|
||||
});
|
||||
});
|
||||
|
||||
if (opts.debug) {
|
||||
runner.on('fail', (test, err) => {
|
||||
|
||||
console.error(test.fullTitle());
|
||||
console.error(err.stack);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user