meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
489 stars 116 forks source link

Example of adjusting environment variable via CLI to disable server #158

Open iainxt opened 3 years ago

iainxt commented 3 years ago

Is your feature request related to a problem? Please describe. I want to run tests in parallel however due to the port conflict I cannot.

Error: listen EADDRINUSE: address already in use 127.0.0.1:2121

Describe the solution you'd like An example of how to do this.

Describe alternatives you've considered I have tried the following without success:

cypress run --env "cypress-plugin-snapshots.serverEnabled=false" cypress run --env "cypress-plugin-snapshots.serverEnabled"="false" cypress run --env "env.cypress-plugin-snapshots.serverEnabled"="false" cypress run --env cypress-plugin-snapshots.serverEnabled=false cypress run --env "cypress-plugin-snapshots".serverEnabled=false cypress run --env serverEnabled=false

Additional Context

joshuajtward commented 2 years ago

I ran into the exact same issue, but it worked when setting serverEnabled to false in cypress.json:

"env": {
    "cypress-plugin-snapshots": {
      "serverEnabled": false
    }
}