tnicola / cypress-parallel

Reduce up to 40% your Cypress suite execution time parallelizing the test run on the same machine.
MIT License
560 stars 117 forks source link

Found 'path here' instead of resultsPath in cli #147

Closed mixco closed 1 year ago

mixco commented 1 year ago

Whenever I run the cypress-parallel I used to get an error

[Error: ENOENT: no such file or directory, unlink 'C:\\my-frontend-test\path here\cypress_e2e_specs_my.spec.cy.js.json'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'unlink',
  path: 'C:\\my-frontend-test\\path here\\cypress_e2e_specs_my.spec.cy.js.json'

I found in cli.js, line 25: fs.unlink(path.join('path here', file), err => { if (err) console.log(err); }); It seems like this 'path here' was more like a TODO reminder, because when I changed it to fs.unlink(path.join(resultsPath, file), err => { if (err) console.log(err); }); no error was reported.

dmitry commented 1 year ago

@tnicola please update code, as unlink doesn't work because of that :)

tnicola commented 1 year ago

Thanks!This should be fixed in 0.11.0