Skip to content

Commit 1857d6c

Browse files
authored
for test runinng, use --dev instead of --debug (microsoft#159040)
fixes microsoft#159011
1 parent 5143b09 commit 1857d6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/unit/electron/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const optimist = require('optimist')
2626
.describe('runGlob', 'only run tests matching <file_pattern>').alias('runGlob', 'glob').alias('runGlob', 'runGrep').string('runGlob')
2727
.describe('build', 'run with build output (out-build)').boolean('build')
2828
.describe('coverage', 'generate coverage report').boolean('coverage')
29-
.describe('debug', 'open dev tools, keep window open, reuse app data').string('debug')
29+
.describe('dev', 'open dev tools, keep window open, reuse app data').alias('dev', ['dev-tools', 'devTools']).string('dev')
3030
.describe('reporter', 'the mocha reporter').string('reporter').default('reporter', 'spec')
3131
.describe('reporter-options', 'the mocha reporter options').string('reporter-options').default('reporter-options', '')
3232
.describe('wait-server', 'port to connect to and wait before running tests')
@@ -73,7 +73,7 @@ if (crashReporterDirectory) {
7373
});
7474
}
7575

76-
if (!argv.debug) {
76+
if (!argv.dev) {
7777
app.setPath('userData', path.join(tmpdir(), `vscode-tests-${Date.now()}`));
7878
}
7979

@@ -152,7 +152,7 @@ class IPCRunner extends events.EventEmitter {
152152
app.on('ready', () => {
153153

154154
ipcMain.on('error', (_, err) => {
155-
if (!argv.debug) {
155+
if (!argv.dev) {
156156
console.error(err);
157157
app.exit(1);
158158
}
@@ -192,7 +192,7 @@ app.on('ready', () => {
192192
});
193193

194194
win.webContents.on('did-finish-load', () => {
195-
if (argv.debug) {
195+
if (argv.dev) {
196196
win.show();
197197
win.webContents.openDevTools();
198198
}
@@ -270,7 +270,7 @@ app.on('ready', () => {
270270
applyReporter(runner, argv);
271271
}
272272

273-
if (!argv.debug) {
273+
if (!argv.dev) {
274274
ipcMain.on('all done', () => app.exit(runner.didFail ? 1 : 0));
275275
}
276276
});

0 commit comments

Comments
 (0)