Ghostbuster: Easier headless testing with PhantomJS (and CoffeeScript)
thechangelog.com
thechangelog.com
I was just happy to get the link traversal test passing. So many tears to get that reliable.
What mitigated this a bit though, is the actual Phantom codebase on-top of Webkit is really small. So when you need to figure out exactly what it's doing, it's super easy to just dig into the src.
I'm hoping more visibility as CLI JS (and/or Coffescript) testing becomes more mainstream, it will bump up the # of contributors.
IMO The API is a little weird though: when evaluating js within a PhantomJS "WebPage" context, it is _completely_ sandboxed. i.e. you can't use closures or otherwise reference any variables outside the scope of your "WebPage" (without work-arounds). This is odd, when you consider that the page is just another var in your script. IMO it kind of breaks some JS paradigms. Not a big deal, but an annoyance none-the-less.