netzpirat/guard-jasmine — Issue #24: Timeout Jasmine Runner
Author: amchang
Created: 2012-01-06 18:56:49+00:00
State: open

Hey netzpirat,

While I have manually patched my guard-jasmine with the to_version patch, I have unfortunately run into another issue.

Adrians-MacBook-Pro:www_rails adrian$ bundle exec guard --verbose
Please install rb-fsevent gem for Mac OSX FSEvents support
Using polling (Please help us to support your system better than that).
Please install growl_notify or growl gem for Mac OS X notification support and add it to your Gemfile
Guard is now watching at '/Users/adrian/Development/projects/Gogobot-Rails3/www_rails'
Guard::RSpec is running, with RSpec 2!
Bundle already up-to-date
Guard::Jasmine starts Jasmine Gem test server on port 8888.
[2012-01-06 10:46:46] INFO WEBrick 1.3.1
[2012-01-06 10:46:46] INFO ruby 1.9.3 (2011-10-30) [x86_64-darwin11.2.0]
[2012-01-06 10:46:46] INFO WEBrick::HTTPServer#start: pid=8707 port=8888
Jasmine test runner is available at http://localhost:8888/
Run all Jasmine suites
Run Jasmine suite at http://localhost:8888/
ERROR: An error occurred: Timeout waiting for the Jasmine test results!

loading
^C[2012-01-06 10:47:09] INFO going to shutdown ...

Here is the guardfile:

guard 'rspec', :version => 2, :cli => '--color --drb --format Fuubar', :all_on_start => false, :all_after_pass => false do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }

# Rails example
watch(%r{(?:^|\/)spec/.+_spec\.rb$})
watch(%r{(?:^|\/)app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{(?:^|\/)lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{(?:^|\/)app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{(?:^|\/)spec/support/(.+)\.rb$}) { "spec" }
watch('spec/spec_helper.rb') { "spec" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }

# Capybara request specs
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }

watch(%r{^spec/factories/(.+)\.rb$})
end

guard 'bundler' do
watch('Gemfile')
end

guard 'jasmine', server: :jasmine_gem, jasmine_url: 'http://localhost:8888/' do
watch(%r{app/assets/javascripts/(.+)\.(js\.coffee|js|coffee)$}) { |m| "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
watch(%r{spec/javascripts/(.+)_spec\.(js\.coffee|js|coffee)$}) { |m| puts m.inspect; "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { "spec/javascripts" }
end

Here is my Gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.9'
gem 'babosa'
gem 'ar-extensions'
gem 'mysql2', '< 0.3'
gem 'validatable'
gem 'dalli'
gem 'memcache-client'
gem 'authlogic'
gem 'oauth'
gem 'twitter_oauth'
gem 'koala'
gem 'htmlentities'
gem 'aws-s3', :require => 'aws/s3'
gem 'right_aws'
gem 'flickraw'
gem 'activeadmin'
gem 'will_paginate'
gem 'kaminari'
gem 'rubyzip', :require => 'zip/zip'
gem 'nokogiri'
gem 'jammit'
gem 'closure-compiler'
gem 'yui-compressor', :require => 'yui/compressor'
gem 'geokit'
gem 'text'
gem 'rapleaf_api'
gem 'hashie'
gem 'foursquare2'
gem 'oauth2'
gem 'google_places'
gem 'cancan'
gem 'juggernaut'
gem 'whenever', :require => false
gem 'twitter', '1.6.2'
gem 'sunspot', :require => 'sunspot'
gem 'bcrypt-ruby', :require => 'bcrypt'
gem 'compass'
gem 'rmagick', '2.12.2', :require => false
gem 'hiredis', '~> 0.3.1'
gem 'redis', '~> 2.2.0', :require => ['redis/connection/hiredis', 'redis']
gem 'redis-namespace'
gem 'rturk'
gem 'thin'
gem 'capistrano'
gem 'capistrano-ext'
gem 'resque'
gem 'resque-lock'
gem 'resque-loner'
gem 'resque_mailer'
gem "therubyracer", "~> 0.9.8"
gem 'slim'
gem 'execjs'
gem 'sunspot_rails', '~> 1.2.1'
gem 'bitmask_attributes'
gem 'airbrake'
gem 'god'
gem 'resque-scheduler'
gem 'rack-offline'
gem 'cotendo'
gem 'newrelic_rpm', '~> 3.3.0'
gem 'simplegeo'
gem 'urbanairship', '~> 1.1.0'
gem 'enum_column3'
gem 'rvm'
gem 'squeel'

group :development, :test do
gem 'factory_girl_rails'
gem 'rspec-rails'
gem "shoulda"
gem 'factory_girl_rails'
gem 'spork', '~> 0.9.0.rc'
gem 'capybara'
gem 'selenium-webdriver'
gem 'capybara-webkit'
gem 'launchy'
gem 'pickle'
gem 'faker'
gem 'cucumber', '1.0.2'
gem 'cucumber-rails', '1.0.2'
gem 'database_cleaner', '~> 0.6.7'
gem 'guard', '~> 0.8.2'
gem 'guard-rspec'
gem 'guard-bundler'
gem 'fuubar'
gem 'active_reload'
gem 'foreman'
gem 'headless'
gem 'vcr'
gem 'fakeweb'
gem 'awesome_print'
gem 'timecop'
gem 'brice'
gem 'no_peeping_toms'
gem 'jasmine'
gem 'version'
gem 'guard-jasmine'
end

Phantom JS

Adrians-MacBook-Pro:www_rails adrian$ phantomjs --version
1.4.1

Using latest Jasmine (1.1.2) gem / guard-jasmine (0.9.2) from rubygems.org

Again, using ruby 1.9.3-p0 and Rails 3.0.9. Thanks for the response yesterday, helped resolve the first issue!