johnbintz/guard-jasmine-headless-webkit — Issue #12: Run all does not find all specs
Author: logankoester
Created: 2011-10-17 20:39:44+00:00
State: open

Perhaps the mistake is in my implemenation, but I attempted to follow the README ;-)

When I modify an individual file, it runs all the related spec as it should. But when I hit [return] in Guard to call run_all, I get this empty output:

Guard::JasmineHeadlessWebkit running all specs...
PASS: 0 tests, 0 failures, 0.001 secs.
[console] "Selector invalid or missing!"
[...]
Compiling rails assets with Guard::RailsAssets::RailsRunner.
Assets compiled.

The relevant sections of my Guardfile are:

require 'jasmine-headless-webkit'

group :utilities do
guard 'rails-assets', :digest => true do
watch(%r{^app/assets/javascripts/(.*)\.coffee})
end
end

group :testing do
guard 'jasmine-headless-webkit', :all_on_start => false do
watch(%r{^public/assets/.*\.js$})
watch(%r{^spec/javascripts/.*\.js})
end
end

My code is in `app/assets/*.js.coffee`, and my specs are in `spec/javascripts/*.js.coffee`... pretty standard as far as I know.

My best guess is that perhaps the assets are not compiled in time for jasmine-headless-webkit to find them. Do you have any advice for me?