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

Out of memory issue with PHPUnit 10.4.1 #6707

Open
laoneo opened this issue Nov 1, 2023 · 4 comments
Open

Out of memory issue with PHPUnit 10.4.1 #6707

laoneo opened this issue Nov 1, 2023 · 4 comments

Comments

@laoneo
Copy link
Contributor

laoneo commented Nov 1, 2023

Since I'v updated the dependencies on my larger project and PHPUnit got lifted to version 10.4.1, I get out of memory errors as the memory limit is constantly increasing with big steps. No clue if this is a PHPUnit or Codeception issue, but I'm reporting it here for now.
As soon as I stick to version 10.3.4 in my composer.json, it starts working normally and memory is around 60MB for 2'500 tests, while with PHUnit 10.4.1 it went quickly over 3'000MB. That's why I did a custom reporter as mentioned here which displays the memory consumption.

Is somebody else also getting this issue? If not, I will be happy to close this issue as it is probably with my docker setup only.

@kaktusas2598
Copy link

My code coverage also started timing out when I upgraded from Codecption 4 to 5

@laoneo
Copy link
Contributor Author

laoneo commented Nov 7, 2023

In your dev dependencies, try to stick the PHPUnit version to 10.3.4, as I did here. Does that help?

@kaktusas2598
Copy link

@laoneo I'm afraid we are still on PHPUnit 9.6.13

@laoneo
Copy link
Contributor Author

laoneo commented Nov 7, 2023

That should be fine, as long as it is not 10.4.1. But then I think you problem is not related to mine.

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

2 participants