gma / tconsole

Testing console for Rails. Helps out with test performance and also makes it easier to run specific tests
177 stars 18 forks source link

tconsole error when running tests #59

Closed simao closed 11 years ago

simao commented 12 years ago

I am getting the following errors when trying to run my tests with tconsole:

tconsole> all
Running tests...

-- create_table("albums", {:force=>true})
   -> 0.0456s
-- create_table("mentos", {:force=>true})
   -> 0.0042s
-- create_table("users", {:force=>true})
   -> 0.0051s
-- initialize_schema_migrations_table()
   -> 0.0005s
-- assume_migrated_upto_version(20120311201208, ["db/migrate"])
   -> 0.0007s
Run options: --seed 40809
/Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/gems/minitest-2.11.4/lib/minitest/unit.rb:943:in `_run': undefined method `>' for nil:NilClass (NoMethodError)
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/gems/minitest-2.11.4/lib/minitest/unit.rb:927:in `run'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/minitest_handler.rb:13:in `run'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:133:in `block (2 levels) in run_tests'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:78:in `call'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:78:in `block in run_in_fork'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:75:in `fork'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:75:in `run_in_fork'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:116:in `block in run_tests'
    from /Users/simao/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:101:in `run_tests'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:183:in `run_file_set'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole/server.rb:15:in `handle'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole.rb:61:in `block in run'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole.rb:53:in `fork'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/lib/tconsole.rb:53:in `run'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bundler/gems/tconsole-c48c5c29dbea/bin/tconsole:5:in `<top (required)>'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bin/tconsole:19:in `load'
    from /Users/simao/.rvm/gems/ruby-1.9.3-p125@ment/bin/tconsole:19:in `<main>'

Test time (including load): 2.467166s

tconsole> 

This happens after I run bundle exec tconsole, my tests are automatically executed one time and everything works, but when I run all, this happens.

Any ideas?

Thanks

nalanj commented 12 years ago

@simao Sorry about the delay in getting back to you - I was travelling this past week. So when you load tconsole initially it's running your tests without you telling it to? Most likely there's a load issue going on. Can you send me your Gemfile? Feel free to email me at alan@commondream.net if you don't want to share it publicly.

simao commented 12 years ago

Hello Alan,

No worries, of course, thanks for getting back.

Here's my gemfile


source 'https://rubygems.org'

gem 'rails', '3.2.2'

gem 'sqlite3'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

gem "paperclip", "~> 2.7"

gem 'skeleton-rails'

group :development do
end

group :development, :test do
  gem "minitest-rails"
  gem "tconsole", :git => "https://github.com/commondream/tconsole.git"
  gem "test-unit"
  gem "populator"
  gem "rvm"
  gem "guard"
  gem "guard-test"
  gem "spork"
  gem "spork-testunit"
  gem 'guard-spork'
  gem 'ruby-debug19', :require => 'ruby-debug'
end

# To use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'
nalanj commented 11 years ago

Closing since I wasn't ever able to reproduce this issue.