Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Problem with tests hanging after they start to run (using puppeteer helper) #3576

Unanswered
jayudey-wf asked this question in Q&A
Discussion options

I'm wondering if people have seen where tests appear to be hanging after 'starting' the test.

Here is an example of what I see in the console output when running in debug mode before the process stops reporting anything

2023年02月03日T19:47:31.032317730Z Add markup from toolbar
2023年02月03日T19:47:31.032654348Z › Test Timeout: 300s
Failure Reason:

On a successful run I see logging like this

2023年02月03日T19:44:48.154071543Z Add markup from toolbar
2023年02月03日T19:44:48.154315772Z › Test Timeout: 300s
2023年02月03日T19:44:48.381567785Z › [Dir] /testing/test/codeceptjs
2023年02月03日T19:44:48.381668181Z >>Current Test FileName: file

My reporter options look like this

 mocha: {
 reporterOptions: {
 "codeceptjs-cli-reporter": {
 "stdout": "-",
 "options": {
 "verbose": true,
 "steps": false,
 }
 },
 "mocha-junit-reporter": {
 "stdout": "./output/console.log",
 "options": {
 "mochaFile": "./output/reports/junit-results.[hash].xml",
 }
 }
 },
 }

I'm wondering if there is some other course of action I could do to try and gather some more information about what is 'halting' the process so I can continue my investigation (currently this is happening ~1 in 30 runs)?

You must be logged in to vote

Replies: 1 comment

Comment options

  1. try to turn off verbose flag
  2. try to increase --max-old-space-size for NodeJS https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-megabytes
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /