@@ -17,22 +17,32 @@ suite('Debugger - Launcher Script Provider', () => {
1717 } ) ;
1818 test ( 'Test debug launcher args' , async ( ) => {
1919 const args = new DebuggerLauncherScriptProvider ( ) . getLauncherArgs ( { host : 'something' , port : 1234 } ) ;
20- const expectedArgs = [ expectedPath , '--client' , '--host' , 'something' , '--port' , '1234' ] ;
20+ const expectedArgs = [ expectedPath , '--default' , '-- client', '--host' , 'something' , '--port' , '1234' ] ;
2121 expect ( args ) . to . be . deep . equal ( expectedArgs ) ;
2222 } ) ;
2323 test ( 'Test non-debug launcher args' , async ( ) => {
2424 const args = new NoDebugLauncherScriptProvider ( ) . getLauncherArgs ( { host : 'something' , port : 1234 } ) ;
25- const expectedArgs = [ expectedPath , '--nodebug' , '--client' , '--host' , 'something' , '--port' , '1234' ] ;
25+ const expectedArgs = [ expectedPath , '--default' , '--nodebug' , '--client' , '--host' , 'something' , '--port' , '1234' ] ;
26+ expect ( args ) . to . be . deep . equal ( expectedArgs ) ;
27+ } ) ;
28+ test ( 'Test debug launcher args and custom ptvsd' , async ( ) => {
29+ const args = new DebuggerLauncherScriptProvider ( ) . getLauncherArgs ( { host : 'something' , port : 1234 , customDebugger : true } ) ;
30+ const expectedArgs = [ expectedPath , '--custom' , '--client' , '--host' , 'something' , '--port' , '1234' ] ;
31+ expect ( args ) . to . be . deep . equal ( expectedArgs ) ;
32+ } ) ;
33+ test ( 'Test non-debug launcher args and custom ptvsd' , async ( ) => {
34+ const args = new NoDebugLauncherScriptProvider ( ) . getLauncherArgs ( { host : 'something' , port : 1234 , customDebugger : true } ) ;
35+ const expectedArgs = [ expectedPath , '--custom' , '--nodebug' , '--client' , '--host' , 'something' , '--port' , '1234' ] ;
2636 expect ( args ) . to . be . deep . equal ( expectedArgs ) ;
2737 } ) ;
2838 test ( 'Test remote debug launcher args (and do not wait for debugger to attach)' , async ( ) => {
2939 const args = new RemoteDebuggerLauncherScriptProvider ( ) . getLauncherArgs ( { host : 'something' , port : 1234 , waitUntilDebuggerAttaches : false } ) ;
30- const expectedArgs = [ expectedPath , '--host' , 'something' , '--port' , '1234' ] ;
40+ const expectedArgs = [ expectedPath , '--default' , '-- host', 'something' , '--port' , '1234' ] ;
3141 expect ( args ) . to . be . deep . equal ( expectedArgs ) ;
3242 } ) ;
3343 test ( 'Test remote debug launcher args (and wait for debugger to attach)' , async ( ) => {
3444 const args = new RemoteDebuggerLauncherScriptProvider ( ) . getLauncherArgs ( { host : 'something' , port : 1234 , waitUntilDebuggerAttaches : true } ) ;
35- const expectedArgs = [ expectedPath , '--host' , 'something' , '--port' , '1234' , '--wait' ] ;
45+ const expectedArgs = [ expectedPath , '--default' , '-- host', 'something' , '--port' , '1234' , '--wait' ] ;
3646 expect ( args ) . to . be . deep . equal ( expectedArgs ) ;
3747 } ) ;
3848} ) ;
0 commit comments