I'm currently trying to build a little testing suite for CI (Hudson). I've written a complex script which dynamically invokes other Scripts and populates a given DIV element.
My Selenium tests work for trivial examples (load www.google.com, search for the q-Element, etc.)
But when I try to run a complex test, which works with the Firefox-Driver, in my PhantomJS instance, it crashes. A segfault occurs.
My question is, how can I write tests for my frontend JS which works on a Hudson-Server which runs (headless).
Or is there a way of debugging what causes segfault?
Slimer.js is similar to Phantom.js, but uses Gecko rather than Webkit.