Skip to content

Commit 38122f3

Browse files
author
Kartik Raj
authored
End tests reliabily on CI (#9348)
* End tests reliabily on CI * Code reviews
1 parent ea02ed3 commit 38122f3

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

src/test/debuggerTest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ function start() {
1919
extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'),
2020
launchArgs: [workspacePath],
2121
version: 'stable'
22-
}).catch(console.error);
22+
}).catch(ex => {
23+
console.error('End Debugger tests (with errors)', ex);
24+
process.exit(1);
25+
});
2326
}
2427
start();

src/test/multiRootTest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ function start() {
1515
extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'),
1616
launchArgs: [workspacePath],
1717
version: 'stable'
18-
}).catch(console.error);
18+
}).catch(ex => {
19+
console.error('End Multiroot tests (with errors)', ex);
20+
process.exit(1);
21+
});
1922
}
2023
start();

src/test/standardTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ function start() {
1818
launchArgs: [workspacePath],
1919
version: 'stable'
2020
}).catch(ex => {
21-
console.error('End Standard tests (with errors)');
22-
console.error(ex);
21+
console.error('End Standard tests (with errors)', ex);
2322
if (process.env.IS_SMOKE_TEST) {
2423
process.exit(1);
2524
}

src/test/testBootstrap.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,7 @@ async function start() {
108108
proc.once('close', end);
109109
}
110110

111-
start().catch(ex => console.error(ex));
111+
start().catch(ex => {
112+
console.error('File testBootstrap.ts failed with Errors', ex);
113+
process.exit(1);
114+
});

0 commit comments

Comments
 (0)