Skip to content
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

AW, Snap! always happens. #2459

Closed
predictiveXu opened this issue Sep 11, 2018 · 5 comments

Comments

4 participants
@predictiveXu
Copy link

commented Sep 11, 2018

Current behavior:

image

Desired behavior:

I don't understand why it always happens when I try to run all tests. Plus, It always happen when It passes half tests. As a result of it, I have to run it again.

Did someone see it before?

Versions

windows 10.
chrome.

@jennifer-shehane

This comment has been minimized.

Copy link
Member

commented Sep 12, 2018

Cypress keeps many of the tests in memory, so that you can access snapshots and timetravel, unfortunately, this causes this crash when you run a large amount of tests (like in the 'Run All' button), we have some plans laid out to prevent this from happening in our roadmap.

For now, you may try adding the option below in your cypress.json https://on.cypress.io/configuration#Global :

{
  "numTestsKeptInMemory": 0,
}
@predictiveXu

This comment has been minimized.

Copy link
Author

commented Sep 14, 2018

Thanks.

@Peggy1012

This comment has been minimized.

Copy link

commented Oct 1, 2018

I have the same problem, but this idea did not help me

@jennifer-shehane

This comment has been minimized.

Copy link
Member

commented Nov 10, 2018

Unfortunately we'll have to close this issue if no reproducible example is provided. Can anyone provide a way to reproduce this?

@lukeapage

This comment has been minimized.

Copy link

commented Nov 27, 2018

We had this too, windows 10, chrome and also after about a minute when running all specs.
Adding the numTestsKeptInMemory helped us massively.
We already have this option:

"runTestsKeptInMemory": 1,

maybe adding both helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.