guard/guard-test — Issue #18: Guard fails on benchmarking
Author: xto
Created: 2011-10-24 14:19:41+00:00
State: open

I just installed `guard` and `guard-test` and upon running my test at `guard`'s startup I get the following error:

/Users/xavierto/.rvm/gems/ruby-1.8.7-p174@bitbop/gems/test_benchmark-0.4.6/lib/test_benchmark.rb:78:in `select_by_suite_name': You have a nil object when you didn't expect it! (NoMethodError)
You might have expected an instance of Array.
The error occurred while evaluating nil.select
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test_benchmark-0.4.6/lib/test_benchmark.rb:87:in `prep_benchmarks'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test_benchmark-0.4.6/lib/test_benchmark.rb:108:in `output_benchmarks'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test_benchmark-0.4.6/lib/test_benchmark.rb:43:in `finished'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/guard-test-0.4.0/lib/guard/test/guard_test_runner.rb:35:in `finished'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/guard-test-0.4.0/lib/guard/test/guard_test_runner.rb:5:in `to_proc'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/util/observable.rb:78:in `call'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/util/observable.rb:78:in `notify_listeners'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/util/observable.rb:78:in `each'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/util/observable.rb:78:in `notify_listeners'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/ui/testrunnermediator.rb:64:in `run_suite'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/ui/testrunner.rb:40:in `start_mediator'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/ui/testrunner.rb:25:in `start'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/ui/testrunnerutilities.rb:24:in `run'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/autorunner.rb:365:in `run'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit/autorunner.rb:58:in `run'
from /Users/xavierto/.rvm/gems/ruby-1.8.7-p174@global/gems/test-unit-2.4.0/lib/test/unit.rb:326
from -e:1

I'm not sure as to why this happens but it basically prevents guard from notifying me with the test results as it fails (somewhat violently...)