-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hangs while trying to start Jasmine server with :server => :jasmine_gem #17
Comments
Thank for reporting this. guard-jasmine uses the rack server from the Jasmine gem, so perhaps something has changed in the Jasmine gem. I'll have a look at it, but it won't happend before the next week. |
As workaround you could try this gist, which uses guard-process to start the Jasmine server. |
No worries. I know people are busy this time of year. Thanks for pointing me at guard-process. That will be much better than running |
I figured it out. An exception was being raised but not being printed out. I wrapped the code that attempts to start the Jasmine server in a begin/rescue block and printed the exception. At first, I saw:
After requiring
|
Well spotted, thank you. I have just moved the require statement into the jasmine server scope, so Rails 3.1 user won't have to add the Jasmine gem. |
I want to use guard-jasmine to run my tests against a vanilla Jasmine server. I configured my Guardfile with:
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:
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 launchingrake jasmine
before runningguard
. 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.
The text was updated successfully, but these errors were encountered: