question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Testem process exits (times out?) after 10s with code 1, no error

See original GitHub issue

It seems to happen when my webpack process takes longer than 10s to build, I have this in my config:

{
  "framework": "tap",
  "launch_in_dev": ["PhantomJS"],
  "launch_in_ci": ["PhantomJS"],
  "src_files": ["tests/bundle.js"],
  "serve_files": ["tests/bundle.js"],
  "on_start": {
    "command": "npm run build:test:watch",
    "wait_for_text": "[built]"
  },
  "on_exit": {
    "command": "rm tests/bundle.js"
  }
}

The build:test:watch script basically does webpack --define process.env.NODE_ENV='\"test\"' tests/index.js tests/bundle.js --watch

Is there some timeout in testem that will kill the process if it doesn’t see the wait_for_text after 10s?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stefanpennercommented, Jul 19, 2016

ah, ya that seems like a different case then what my pr resolved. For reference, I used wtfnode to figure out what was going on.

0reactions
adamyonkcommented, Aug 1, 2016

This just won’t die! On testem 1.10.2 with the following config:

{
…
  "hook": {
    "wait_for_text_timeout": 60000
  }
}

I’m still seeing it crash quite often with this at the end of the testem log:

…
info ok 118 should have only exclude condition for less inclusive wildcard

info Browser PhantomJS finished all tests. undefined
info PhantomJS 2.1 onEnd
WARN PhantomJS closed 1
info Process PhantomJS terminated. 1 null

Is there anything else I can do to try to help debug this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testem Chrome Timeouts · Issue #1021 - GitHub
It usually just tells us testem.js has not loaded . As the issue is intermittent it can be hard to reproduce. I've tried...
Read more >
JUnit Test "Times Out" Despite Executing Quickly?
And the test doesn't really ends after a couple of seconds. Try focusing on the HttpConnection error (or add your code if you...
Read more >
Debug BrowserStack Automate idle timeout error
In BrowserStack, a test session receives it, runs it, and expects another command to arrive. If a test session does not receive the...
Read more >
Test passes in --server mode but fails without - Ember.JS
I have a weird behaviour when running tests with ember t in the Terminal, - there is one that fails with: Testem finished...
Read more >
Common Error Messages | Sauce Labs Documentation
You'll see this error when your test suite is still running in a session that has lasted more than 1800 seconds (30 minutes)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found