Skip to content

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

Closed
@f820602h

Description

@f820602h
  "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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions