Skip to content

Commit 4dff6e6

Browse files
Track test time
1 parent 7b5877c commit 4dff6e6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/vscode-e2e-runner/src/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { runTests } from '@vscode/test-electron';
22
import { join } from 'path';
3+
import { performance } from 'perf_hooks';
34

45
async function go() {
6+
/** Get start time */
7+
const t0 = performance.now();
8+
59
try {
610
/** Development folder, hover help below in runTests */
711
const extensionDevelopmentPath = process.cwd();
@@ -22,7 +26,9 @@ async function go() {
2226
extensionDevelopmentPath,
2327
extensionTestsPath,
2428
});
29+
console.log(`Finished running tests in ${performance.now() - t0} ms`);
2530
} catch (err) {
31+
console.log(`Finished running tests in ${performance.now() - t0} ms`);
2632
console.error('Failed to run tests');
2733
process.exit(1);
2834
}

0 commit comments

Comments
 (0)