Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autotest can´t run #28

Closed
ceritium opened this issue Dec 21, 2010 · 4 comments
Closed

Autotest can´t run #28

ceritium opened this issue Dec 21, 2010 · 4 comments

Comments

@ceritium
Copy link
Contributor

I can´t run autotest, a have the next error:

$ autotest
loading autotest/rails
/Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/unit/mercurial_vcs_test.rb test/unit/build_part_test.rb test/unit/helpers/application_helper_test.rb test/unit/helpers/step_lists_helper_test.rb test/integration/builds_test.rb test/unit/project_test.rb test/unit/hooks_test.rb test/unit/git_vcs_test.rb test/unit/xmpp_hook_test.rb test/unit/irc_hook_test.rb test/integration/projects_test.rb test/unit/build_test.rb test/unit/step_list_test.rb test/integration/hooks_test.rb test/integration/autobuild_test.rb test/unit/mailer_hook_test.rb test/integration/step_list_test.rb].each { |f| require f }" | unit_diff -u
/Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require': no such file to load -- context (LoadError)
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/shout-bot-0.0.4/./shout-bot.rb:81
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:in `require'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/bundler-1.0.3/lib/bundler/runtime.rb:64:in `require'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:in `each'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/bundler-1.0.3/lib/bundler/runtime.rb:62:in `require'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:in `each'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/bundler-1.0.3/lib/bundler/runtime.rb:51:in `require'
    from /Users/ceritium/.rvm/gems/ruby-1.8.7-p248/gems/bundler-1.0.3/lib/bundler.rb:112:in `require'
    from /Users/ceritium/work/bigtuna/config/application.rb:7
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Users/ceritium/work/bigtuna/config/environment.rb:2
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from ./test/test_helper.rb:2
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from ./test/unit/mercurial_vcs_test.rb:1
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Users/ceritium/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from -e:1
    from -e:1:in `each'
    from -e:1

I have tried to install the gem 'context' but i have the same response.

¿Someone have the same problem?

@benfoxall
Copy link
Contributor

Looks like a require in the shout-box gem

If you use the version from github by changing the relevant line in the Gemfile from -

gem "shout-bot"

into

gem "shout-bot", :git => 'git://github.com/sr/shout-bot.git'

…then bundle.

Now when you run autotest - and you'll get something like this:

./test/unit/step_list_test.rb:3: superclass mismatch for class StepListTest (TypeError)
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:227:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from -e:2
from -e:2:in `each'
from -e:2

This is a different error - because a name clash between test/unit/step_list_test.rb and test/integration/step_list_test.rb.

You can get around this by running autotest -f instead, to only run tests as the relevant files are saved… Not ideal - though it works.

@antekpiechnik
Copy link
Member

Hey @ceritium, did @benfoxall's solution help ?

@benfoxall
Copy link
Contributor

Hey, I notice that this issue has been closed, though I think that there is still an issue with the name clash of test/unit/step_list_test.rb and test/integration/step_list_test.rb -- which will prevent autotest running effectively.

Should I start another issue for this?

@antekpiechnik antekpiechnik reopened this Mar 22, 2011
@antekpiechnik
Copy link
Member

Yeah, that would be great. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants