-
Notifications
You must be signed in to change notification settings - Fork 40
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
java.lang.OutOfMemoryError at Courgette.java:54 #214
Comments
Hello, Unfortunately, I cannot reproduce this.
|
It happens when I run a set of 20+ tests, scenario level. Is there an option to switch off courgette report? I need only cucumber.json for internal use. |
Do you have a zipped project or git repo I can reproduce this on? |
Thanks a lot for your advice. I tried both feature and scenario level, makes no difference. Unfortunately I can't share this project. It looks like the problem could be in reports being too large on my side... For the last run I've got 7Mb |
28mb html report is quite large. I assume you saving a lot of images to the report? |
Hi, just an update on the issue, could be a Cucumber problem: https://github.com/cucumber/cucumber/issues/1232 |
@natfatykhova This update is now released in Courgette version |
Thank you @prashant-ramcharan ! Current memory setting are I tried again with Courgette off, just direct Cucumber, and it passed without exception... Could it be a memory leak, visible only for large projects? |
How many tests are your running and how big (in size) are your Cucumber reports? Can you try the following and check if you get the same error?
|
@natfatykhova I'm now able to reproduce this. I will look into resolving this. |
Ok cool, thanks for update. |
@natfatykhova The out of memory error should be resolved in version Please let me know if it fixes your issue. |
@prashant-ramcharan Thank you, that's great, I've run regression on a new built, it's all good -- didn't get OOM error. |
That's great @natfatykhova It should just print once at the end of the test run if there were failures. |
That's what I'm getting in console output for Jenkins build, for failed features only (fail is expected here): RunGhostTests > courgette.api.junit.Courgette.Testcase1 FAILED RunGhostTests > courgette.api.junit.Courgette.Testcase2 FAILED RunGhostTests > courgette.api.junit.Courgette.Testcase3 FAILED RunGhostTests > courgette.api.junit.Courgette.Testcases4 FAILED RunGhostTests > courgette.api.junit.Courgette.Testcase5 FAILED RunGhostTests > courgette.api.junit.Courgette.Testcase6 FAILED
|
Seems to be an exception for every failed scenario in feature |
Ah you using the Junit runner. Yes, this has always printed the exception when there was a failure. It's a way to notifier JUnit that the test failed. This was not changed in version in |
I think the reason why you didn't see it before was because your tests didn't reach that point because of the OOM error. |
Yeah, that makes sense. Thank you. |
Hello,
I'm currently upgrading to version 5.4.0, and I'm getting an error when building report:
`RunGhostTests > courgette.api.junit.Courgette.[some tests] FAILED
courgette.runtime.CourgetteTestFailureException
java.lang.OutOfMemoryError at Courgette.java:54
5 tests completed, 1 failed`
Could you please advice what could be the cause. I'm getting this for new version only, everything works fine when I run same tests on an old branch with version 3. Thanks
The text was updated successfully, but these errors were encountered: