Skip to content

Instantly share code, notes, and snippets.

@jwhitmire
Created April 17, 2010 14:05
Show Gist options
  • Save jwhitmire/369577 to your computer and use it in GitHub Desktop.
Save jwhitmire/369577 to your computer and use it in GitHub Desktop.
Running the tests outside of hydra
~/work/homeschool/hss ‹master*› $ rake spec
(in /Users/jeff/work/homeschool/hss)
/Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
.......................................................................................
Finished in 1.920293 seconds
87 examples, 0 failures
Running the specs in hydra
~/work/homeschool/hss ‹master*› $ RAILS_ENV=test rake hydra:spec
(in /Users/jeff/work/homeschool/hss)
1271512756.75659 MASTER| Initialized
1271512756.75667 MASTER| Files: (["spec/controllers/application_controller_spec.rb", "spec/controllers/classroom_controller_spec.rb", "spec/controllers/home_controller_spec.rb", "spec/controllers/setup_controller_spec.rb", "spec/controllers/users_controller_spec.rb", "spec/factory_specs/global_factory_spec.rb", "spec/helpers/home_helper_spec.rb", "spec/models/student_spec.rb", "spec/models/user_spec.rb", "spec/routing/home_routing_spec.rb", "spec/routing/root_routing_spec.rb", "spec/routing/students_routing_spec.rb", "spec/routing/users_routing_spec.rb", "spec/views/home/show.haml_spec.rb"])
1271512756.7567 MASTER| Workers: ([{"type"=>"local", "runners"=>2}])
1271512756.75672 MASTER| Verbose: (true)
Hydra Testing [> ] 0/141271512756.75697 MASTER| Booting 1 workers
1271512756.75705 MASTER| worker opts {"type"=>"local", "runners"=>2}
1271512756.75714 MASTER| Booting local worker
1271512756.75839 MASTER| Processing Messages
1271512756.75864 MASTER| Workers: [{:type=>:local, :idle=>false, :io=>#<Hydra::Pipe @reader=#<IO:0x102146ce0>, @writer=#<IO:0x102146d58>>, :pid=>33917}]
1271512756.75905 MASTER| Listening to {:type=>:local, :idle=>false, :io=>#<Hydra::Pipe @reader=#<IO:0x102146ce0>, @writer=#<IO:0x102146d58>>, :pid=>33917}
1271512756.75924 WORKER| Booting 2 Runners
1271512756.76022 WORKER| 2 Runners booted
1271512756.76031 WORKER| Processing Messages
1271512756.76183 RUNNER| Booted. Sending Request for file
1271512756.76252 RUNNER| Processing Messages
1271512756.76256 RUNNER| Booted. Sending Request for file
1271512756.76323 RUNNER| Processing Messages
1271512756.76324 WORKER| Received Message from Runner
1271512756.76337 WORKER| Received Message from Runner
1271512756.76351 WORKER| #<Hydra::Messages::Runner::RequestFile:0x102145e30>
1271512756.76357 WORKER| #<Hydra::Messages::Runner::RequestFile:0x102145a98>
1271512756.7644 MASTER| got message: #<Hydra::Messages::Worker::RequestFile:0x1021461f0>
1271512756.76447 MASTER| Sending "spec/controllers/application_controller_spec.rb"
1271512756.76467 MASTER| got message: #<Hydra::Messages::Worker::RequestFile:0x102145a48>
1271512756.76471 MASTER| Sending "spec/controllers/classroom_controller_spec.rb"
1271512756.76499 WORKER| Received Message from Master
1271512756.76503 WORKER| #<Hydra::Messages::Master::RunFile:0x102144f30 @file="spec/controllers/application_controller_spec.rb">
1271512756.76531 WORKER| Received Message from Master
1271512756.76534 WORKER| #<Hydra::Messages::Master::RunFile:0x1021442b0 @file="spec/controllers/classroom_controller_spec.rb">
1271512756.76699 RUNNER| Received message from worker
1271512756.76715 RUNNER| #<Hydra::Messages::Worker::RunFile:0x102145e58 @file="spec/controllers/classroom_controller_spec.rb">
1271512756.76718 RUNNER| Running file: spec/controllers/classroom_controller_spec.rb
1271512756.76774 RUNNER| Received message from worker
1271512756.76778 RUNNER| #<Hydra::Messages::Worker::RunFile:0x102146038 @file="spec/controllers/application_controller_spec.rb">
1271512756.76781 RUNNER| Running file: spec/controllers/application_controller_spec.rb
1271512757.2063 RUNNER| uninitialized constant ActionController
/Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant ActionController (NameError)
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing'
from /Users/jeff/work/homeschool/hss/app/controllers/application_controller.rb:1
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in `load_file'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379:in `load_file'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:259:in `require_or_load'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:224:in `depend_on'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:136:in `require_dependency'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/rspec-rails-1.3.2/lib/spec/rails.rb:2
from /Users/jeff/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Users/jeff/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /Users/jeff/work/homeschool/hss/spec/spec_helper.rb:6
from /Users/jeff/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/jeff/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from ./spec/controllers/classroom_controller_spec.rb:1
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in `load_files'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in `each'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in `load_files'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in `run_examples'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/runner.rb:131:in `run_rspec_file'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/runner.rb:39:in `run_file'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/message/worker_messages.rb:19:in `handle'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/runner.rb:69:in `process_messages'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/runner.rb:26:in `initialize'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/worker.rb:73:in `new'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/worker.rb:73:in `boot_runners'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/safe_fork.rb:15:in `fork'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/safe_fork.rb:7:in `fork'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/worker.rb:71:in `boot_runners'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/worker.rb:69:in `times'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/worker.rb:69:in `boot_runners'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/worker.rb:21:in `initialize'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/master.rb:123:in `new'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/master.rb:123:in `boot_local_worker'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/safe_fork.rb:15:in `fork'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/safe_fork.rb:7:in `fork'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/master.rb:121:in `boot_local_worker'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/master.rb:108:in `boot_workers'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/master.rb:103:in `each'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/master.rb:103:in `boot_workers'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/master.rb:66:in `initialize'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/tasks.rb:100:in `new'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/hydra-0.16.2/lib/hydra/tasks.rb:100
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:636:in `call'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:631:in `each'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
from /Users/jeff/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/gems/rake-0.8.7/bin/rake:31
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/bin/rake:19:in `load'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p249%global/bin/rake:19
1271512757.21214 RUNNER| uninitialized constant ActionController
require 'hydra'
require 'hydra/tasks'
Hydra::TestTask.new('hydra:spec') do |t|
t.verbose = true
t.add_files 'spec/**/*_spec.rb'
end
Hydra::TestTask.new('hydra:cucumber') do |t|
t.verbose = true
t.add_files 'features/**/*.feature'
end
task :hydra => ['hydra:spec', 'hydra:cucumber']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment