0
我有一套使用在osx機器上運行多年的Cucumber和Watir的Ruby測試。但是,現在我需要它們在Centos 6.6上運行。Ruby需要不工作/未初始化的常量
我想(希望)我已經正確安裝了一切。但是,當我嘗試運行我的測試時,我在Centos上發現了這個錯誤,這是我無法弄清楚的。
bash-4.1$ bundle exec cucumber -p local_sun features/clones/registering/registration_step_one_successful.feature GRID=true
Using the local_sun profile...
uninitialized constant Common::Utils::Hydra::Hydra::HttpRequests (NameError)
./lib/common/utils/hydra.rb:12
./lib/chimera-automation.rb:3:in `require'
./lib/chimera-automation.rb:3:in `require_files'
./lib/chimera-automation.rb:3:in `each'
./lib/chimera-automation.rb:3:in `require_files'
./lib/chimera-automation.rb:2:in `each'
./lib/chimera-automation.rb:2:in `require_files'
./features/support/env.rb:54
/var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2:in `require'
/var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2
/var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2:in `each'
/var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime.rb:41:in `run!'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/cucumber:14
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/bin/cucumber:23:in `load'
/var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/bin/cucumber:23
我在我的Mac上有相同的設置,它的工作原理。它看起來好像是在我試圖要求它們時可能沒有正確加載文件?
你使用的是同一個gemlock文件嗎? 1.8.7也可能在這一點上值得升級。 – titusfortner
是的,它是同一個gemlock文件,我也想升級它,但這是一個遺留測試套件,我們只是運行並檢查reuslts,我一直認爲更改爲Ruby 1.9.3會導致需要一個巨大的測試的重構。 –