netzpirat/guard-jasmine — Issue #17: Hangs while trying to start Jasmine server with :server => :jasmine_gem
Author: dcuddeback
Created: 2011-12-09 07:51:33+00:00
State: open

I want to use guard-jasmine to run my tests against a vanilla Jasmine server. I configured my Guardfile with:

guard 'jasmine', :server => :jasmine_gem, :jasmine_url => 'http://localhost:8888/'

and the necessary guard-coffeescript directives above that to compile my CoffeeScript files. The problem is when I start guard, it hangs with the last line of output beging:

Guard::Jasmine starts Jasmine Gem test server on port 8888.

My Jasmine runner is not available at http://localhost:8888/ (I tried loading it in the browser). Guard is blocked at this point and can't process any events.

I can work around it by specifying `:server => :none` and manually launching `rake jasmine` before running `guard`. Then everything works beautifully. The JavaScript specs run really fast. It would be more convenient if `:server => :jasmine_gem` launched the server for me.

Let me know if you need any more info about my setup to debug this.