Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Better error handling when server fails to start during testing (see issue #7) #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aquamoth
Copy link

[See issue #7]

This fixes the bad error message when the server port is already occupied, but it doesn't address the real problem with firefox and selenium.

The firefox/selenium-bug seems to be hard to get by. Selenium crashes with a SIGSEGV and gives mocha no chance to clean up. I can't see a simple way to try/catch that in nodejs either. https://github.com/ddopson/node-segfault-handler created a module that writes a stack-trace when nodejs dies, but that module doesn't make any attempt to stop the actual core-dump.

@jamesshore
Copy link
Owner

Thanks. The crash is a rough one. I suppose you could work around it by spawning the smoke tests in a new process, similar to the way the PhantomJS tests worked, but I'm not sure the trouble would be worth it.

@jamesshore jamesshore changed the title Issue7 Better error handling when server fails to start during testing (see issue #7) Jun 10, 2015
@jamesshore
Copy link
Owner

This is a good change, but I've decided not to integrate it at this time. See issue #7 for discussion.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants