@@ -94,46 +94,54 @@ assert.equal(out.status, 0);
9494console . groupEnd ( ) ;
9595
9696console . group ( "-w --help" ) ;
97+ console . log ( "@@ begin " ) ;
9798out = child_process . spawnSync ( `../../../rescript` , [ "-w" , "--help" ] , {
9899 encoding : "utf8" ,
99100 cwd : __dirname ,
100101} ) ;
101102assert . equal ( out . stdout , cliHelp ) ;
102103assert . equal ( out . stderr , "" ) ;
103104assert . equal ( out . status , 0 ) ;
105+ console . log ( "@@ done" ) ;
104106console . groupEnd ( ) ;
105107
106108// Shows cli help with --help arg even if there are invalid arguments after it
107109console . group ( "--help -w" ) ;
110+ console . log ( "@@ begin " ) ;
108111out = child_process . spawnSync ( `../../../rescript` , [ "--help" , "-w" ] , {
109112 encoding : "utf8" ,
110113 cwd : __dirname ,
111114} ) ;
112115assert . equal ( out . stdout , cliHelp ) ;
113116assert . equal ( out . stderr , "" ) ;
114117assert . equal ( out . status , 0 ) ;
118+ console . log ( "@@ done" ) ;
115119console . groupEnd ( ) ;
116120
117121// Shows build help with -h arg
118122console . group ( "build -h" ) ;
123+ console . log ( "@@ begin " ) ;
119124out = child_process . spawnSync ( `../../../rescript` , [ "build" , "-h" ] , {
120125 encoding : "utf8" ,
121126 cwd : __dirname ,
122127} ) ;
123128assert . equal ( out . stdout , buildHelp ) ;
124129assert . equal ( out . stderr , "" ) ;
125130assert . equal ( out . status , 0 ) ;
131+ console . log ( "@@ done " ) ;
126132console . groupEnd ( ) ;
127133
128134// Exits with build help with unknown arg
129135console . group ( "build -foo" ) ;
136+ console . log ( "@@ begin " ) ;
130137out = child_process . spawnSync ( `../../../rescript` , [ "build" , "-foo" ] , {
131138 encoding : "utf8" ,
132139 cwd : __dirname ,
133140} ) ;
134141assert . equal ( out . stdout , "" ) ;
135142assert . equal ( out . stderr , 'Error: Unknown option "-foo".\n' + buildHelp ) ;
136143assert . equal ( out . status , 2 ) ;
144+ console . log ( "@@ done " ) ;
137145console . groupEnd ( ) ;
138146
139147// Shows cli help with --help arg
0 commit comments