@@ -26,7 +26,7 @@ const optimist = require('optimist')
26
26
. describe ( 'runGlob' , 'only run tests matching <file_pattern>' ) . alias ( 'runGlob' , 'glob' ) . alias ( 'runGlob' , 'runGrep' ) . string ( 'runGlob' )
27
27
. describe ( 'build' , 'run with build output (out-build)' ) . boolean ( 'build' )
28
28
. 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 ' )
30
30
. describe ( 'reporter' , 'the mocha reporter' ) . string ( 'reporter' ) . default ( 'reporter' , 'spec' )
31
31
. describe ( 'reporter-options' , 'the mocha reporter options' ) . string ( 'reporter-options' ) . default ( 'reporter-options' , '' )
32
32
. describe ( 'wait-server' , 'port to connect to and wait before running tests' )
@@ -73,7 +73,7 @@ if (crashReporterDirectory) {
73
73
} ) ;
74
74
}
75
75
76
- if ( ! argv . debug ) {
76
+ if ( ! argv . dev ) {
77
77
app . setPath ( 'userData' , path . join ( tmpdir ( ) , `vscode-tests-${ Date . now ( ) } ` ) ) ;
78
78
}
79
79
@@ -152,7 +152,7 @@ class IPCRunner extends events.EventEmitter {
152
152
app . on ( 'ready' , ( ) => {
153
153
154
154
ipcMain . on ( 'error' , ( _ , err ) => {
155
- if ( ! argv . debug ) {
155
+ if ( ! argv . dev ) {
156
156
console . error ( err ) ;
157
157
app . exit ( 1 ) ;
158
158
}
@@ -192,7 +192,7 @@ app.on('ready', () => {
192
192
} ) ;
193
193
194
194
win . webContents . on ( 'did-finish-load' , ( ) => {
195
- if ( argv . debug ) {
195
+ if ( argv . dev ) {
196
196
win . show ( ) ;
197
197
win . webContents . openDevTools ( ) ;
198
198
}
@@ -270,7 +270,7 @@ app.on('ready', () => {
270
270
applyReporter ( runner , argv ) ;
271
271
}
272
272
273
- if ( ! argv . debug ) {
273
+ if ( ! argv . dev ) {
274
274
ipcMain . on ( 'all done' , ( ) => app . exit ( runner . didFail ? 1 : 0 ) ) ;
275
275
}
276
276
} ) ;
0 commit comments