tomas-stefano / infinity_test

Continuous testing and a alternative to Autotest and Guard
http://github.com/tomas-stefano/infinity_test
MIT License
217 stars 12 forks source link

RSpec tests don't run; "An exception occurred" #27

Open turboladen opened 12 years ago

turboladen commented 12 years ago

I have a number of projects that I'd like to use infinity_test with (and have in the past), but at some point I've become no longer able to use infinity_test. I run the CLI command with no options, and get a Growl notification with only "An exception occurred." My .inifinity_test file:

infinity_test do
  notifications :growl do
    show_images :mode => :mario_bros
  end

  use :rubies => %w(1.9.2), :test_framework => :rspec

  before_run do
    clear :terminal
  end
end

I deleted my .infinity_test file, and just ran infinity_test --rspec and the same thing happens (no tests run), but without the Growl message (obviously):

[sloveless@sloveless-mbp:ssdp(master)]$ infinity_test --verbose

* { :ruby => 1.9.2 }
/Users/sloveless/.rvm/gems/ruby-1.9.2-p290/bin/bundle exec rvm 1.9.2 ruby  /Users/sloveless/.rvm/gems/ruby-1.9.2-p290/bin/rspec spec/core_ext/to_upnp_s_spec.rb spec/ssdp/connection_spec.rb spec/ssdp/searcher_spec.rb spec/ssdp_spec.rb

My gem env:

[sloveless@sloveless-mbp:ssdp(master)]$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.11
  - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.1.0]
  - INSTALLATION DIRECTORY: /Users/sloveless/.rvm/gems/ruby-1.9.2-p290
  - RUBY EXECUTABLE: /Users/sloveless/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/sloveless/.rvm/gems/ruby-1.9.2-p290/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-11
  - GEM PATHS:
     - /Users/sloveless/.rvm/gems/ruby-1.9.2-p290
     - /Users/sloveless/.rvm/gems/ruby-1.9.2-p290@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://rubygems.org", "http://mirror.pelco.org/greybox/"]
  - REMOTE SOURCES:
     - http://rubygems.org
     - http://mirror.pelco.org/greybox/

I'm running rvm version 1.8.6. And FWIW, I have a .rspec file:

--color
--format documentation
--tty

I tried with rspec versions 2.2.0, 2.3.1, 2.4.0, 2.5.0, 2.6.0, 2.7.0 with the same results.

turboladen commented 12 years ago

Also tried removing --format documentation from the .rspec file; same behavior.

tomas-stefano commented 12 years ago

This is very strange and bizarre. :\ Can you reproduce this bug in some little project?

Sorry for take too long to answer this.

Cheers