Skip to content

The test suite of different tests can interfere with each other, causing accidental deletion. #789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
f820602h opened this issue Mar 6, 2024 · 0 comments

Comments

@f820602h
Copy link

f820602h commented Mar 6, 2024

  "scripts": {
    "cy:A": "browserstack-cypress run --ccf 'cypress/e2e/a/cypress.config.mjs' --b \"AAA\"",
    "cy:B": "browserstack-cypress run --ccf 'cypress/e2e/b/cypress.config.mjs' --b \"BBB\""
  },

In my project, there are multiple scripts for running tests in different spaces. When my command triggers concurrently, the 'delete tests.zip' process of one test simultaneously deletes the tests.zip of other tests, resulting in the following error:

{
  message: "form-data: ENOENT: no such file or directory, open 'tests.zip'",
  stack: "Error: ENOENT: no such file or directory, open 'tests.zip'",
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'tests.zip'
}

Is there any API or setting to avoid such situations? For example, can we manually adjust the file names of tests.zip? I couldn't seem to find it in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant