@@ -189,28 +189,27 @@ describe('nx-plugin', () => {
189189
190190    await  materializeTree ( tree ,  cwd ) ; 
191191
192-     const  {  stdout,  stderr  }  =  await  executeProcess ( { 
192+     const  {  stdout }  =  await  executeProcess ( { 
193193      command : 'npx' , 
194-       args : [ 'nx' ,  'run' ,  `${ project }  ,  '--dryRun' ] , 
194+       args : [ 'nx' ,  'run' ,  `${ project }  ,  '--dryRun' ,   '--verbose' ] , 
195195      cwd, 
196196    } ) ; 
197197
198-     const  cleanStderr  =  removeColorCodes ( stderr ) ; 
199-     // @TODO  create test environment for working plugin. This here misses package-lock.json to execute correctly 
200-     expect ( cleanStderr ) . toContain ( 'DryRun execution of: npx @code-pushup/cli' ) ; 
201- 
202198    const  cleanStdout  =  removeColorCodes ( stdout ) ; 
203-     expect ( cleanStdout ) . toContain ( 
204-       'NX   Successfully ran target code-pushup for project my-lib' , 
205-     ) ; 
199+     // Nx command 
200+     expect ( cleanStdout ) . toContain ( 'nx run my-lib:code-pushup' ) ; 
201+     // Run CLI executor 
202+     expect ( cleanStdout ) . toContain ( 'Command: npx @code-pushup/cli' ) ; 
203+     expect ( cleanStdout ) . toContain ( '--dryRun --verbose' ) ; 
206204  } ) ; 
207205
208206  it ( 'should consider plugin option bin in executor target' ,  async  ( )  =>  { 
209-     const  cwd  =  path . join ( testFileDir ,  'configuration-option-bin' ) ; 
207+     const  cwd  =  path . join ( testFileDir ,  'executor-option-bin' ) ; 
208+     const  binPath  =  `packages/cli/dist` ; 
210209    registerPluginInWorkspace ( tree ,  { 
211210      plugin : '@code-pushup/nx-plugin' , 
212211      options : { 
213-         bin : 'XYZ' , 
212+         bin : binPath , 
214213      } , 
215214    } ) ; 
216215    const  {  root }  =  readProjectConfiguration ( tree ,  project ) ; 
@@ -223,13 +222,15 @@ describe('nx-plugin', () => {
223222
224223    expect ( projectJson . targets ) . toStrictEqual ( { 
225224      'code-pushup' : expect . objectContaining ( { 
226-         executor : 'XYZ:cli' , 
225+         options : { 
226+           bin : binPath , 
227+         } , 
227228      } ) , 
228229    } ) ; 
229230  } ) ; 
230231
231232  it ( 'should consider plugin option projectPrefix in executor target' ,  async  ( )  =>  { 
232-     const  cwd  =  path . join ( testFileDir ,  'configuration -option-bin ' ) ; 
233+     const  cwd  =  path . join ( testFileDir ,  'executor -option-projectPrefix ' ) ; 
233234    registerPluginInWorkspace ( tree ,  { 
234235      plugin : '@code-pushup/nx-plugin' , 
235236      options : { 
0 commit comments