无法让黄瓜6.3在rails上运行2.3.4
我正在努力让黄瓜运行没有运气。 这是我看到的错误:
cucumber features Using the default profile... no such file to
load - test /(MissingSourceFile)/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
'/Library/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/Site/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/rubygems/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
polyglot_original_require'/ Library /Ruby/Gems/1.8/gems/polyglot-0.3.0/lib/polyglot.rb:65:in require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
Library require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
Ruby require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
Gems require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
1.8 require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
gems require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
activesupport-2.3.4 require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
lib require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
active_support require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
dependencies.rb require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
require'/Users/yakovrabinovich/Starstreet/starstreet/vendor/gems/cucumber-0.6.3/bin/../lib/cucumber/rails/world.rb require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
11 /Library/Ruby/Site/1.8/ rubygems / custom_require.rb:31:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in polyglot_original_require'/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/Ruby/Gems/1.8/gems gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
polyglot-0.3.0/lib/ polyglot.rb:65:in require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
Library/Ruby/Gems/1.8/gems/ cucumber-rails-0.3.0 / lib / cucumber / rails / rspec.rb:1 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/Library/Ruby/Site/1.8/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
polyglot_original_require'/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
polyglot- gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
polyglot.rb: gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
require' require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in
custom_require.rb :31:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
:31:in polyglot_original_require'/ gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
polyglot- gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
polyglot.rb: gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
:in require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
Library require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
Ruby require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
Gems require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
1.8 require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
gems require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
cucumber-0.6.3 require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
bin/../lib require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
cucumber require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
rb_support require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
rb_language.rb:124:in load_code_file'/Library require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
Ruby require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
Gems require' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
1.8/ gems / cucumber-0.6.3 / bin /../ lib / cucumber / step_mother.rb:85:in load_code_file' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/step_mother.rb:77:in
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/ load_code_file' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/step_mother.rb:77:in
load_code_files each' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/step_mother.rb:76:in
load_code_file' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/step_mother.rb:77:in
each' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/step_mother.rb:76:in
each' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/step_mother.rb:76:in
load_code_files'/Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/cli/ each' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/step_mother.rb:76:in
execute!' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/cli/main.rb:20:in
execute!' /Library/Ruby/Gems/1.8/gems/cucumber-0.6.3/bin/../lib/cucumber/cli/main.rb:20:in
execute'/Library/Ruby/Gems/1.8/gems/cucumber- 0.6.3 / bin / cucumber:8 / usr / bin / cucumber:19:在`load'/ usr / bin / cucumber:19
这是我的宝石:
Yakov-Rabinovichs-MacBook:1.8 yakovrabinovich $ gem list
*本地GEMS *
aasm (2.1.3)
acl9 (0.11.0)
actionmailer (2.3.4, 2.2.2, 1.3.6)
actionpack (2.3.4, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.4, 2.2.2, 1.15.6)
activeresource (2.3.4, 2.2.2)
activesupport (2.3.4, 2.2.2, 1.4.4)
acts_as_ferret (0.4.3)
authlogic (2.1.3)
bgetting-hominid (1.2.0)
builder (2.1.2)
capistrano (2.5.2)
capistrano-ext (1.2.1)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
columnize (0.3.1)
configatron (2.5.1)
cucumber (0.6.3)
cucumber-rails (0.3.0)
daemons (1.0.10)
database_cleaner (0.5.0)
diff-lcs (1.1.2)
dnssd (0.6.0)
factory_girl (1.2.3)
fastthread (1.0.1)
fcgi (0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
gemcutter (0.4.1)
highline (1.5.0)
hoe (2.5.0)
hominid (2.1.0)
hpricot (0.6.164)
json (1.2.0)
json_pure (1.2.0)
libxml-ruby (1.1.2)
linecache (0.43)
mocha (0.9.8)
mongrel (1.1.5)
needle (1.3.0)
net-scp (1.0.1)
net-sftp (2.0.1, 1.1.1)
net-ssh (2.0.16, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.0)
nokogiri (1.4.1)
oauth (0.3.6)
pg (0.8.0)
polyglot (0.3.0)
rack (1.0.1)
rack-test (0.5.3)
rails (2.3.4, 2.2.2, 1.2.6)
rake (0.8.7, 0.8.3)
RedCloth (4.1.1)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-hmac (0.4.0)
ruby-openid (2.1.2)
ruby-yadis (0.3.4)
rubyforge (2.0.3)
rubygems-update (1.3.5)
rubynode (0.1.5)
sqlite3-ruby (1.2.4)
term-ansicolor (1.0.4)
termios (0.9.4)
test-unit (1.2.3)
thoughtbot-factory_girl (1.2.2)
thoughtbot-shoulda (2.10.2)
treetop (1.4.4)
whenever (0.4.1)
will_paginate (2.3.11)
xmpp4r (0.4)
yamler (0.1.0)
任何帮助将不胜感激!
安装了黄瓜宝石之后,你运行了黄瓜生成器吗? 这里都记录在案。 http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails
我似乎记得当我忘记在自己的安装中运行生成器时发生该错误。 您错误提到的'默认配置文件'在运行生成器时创建的cucumber.yml文件中引用。
红宝石脚本/生成黄瓜
尝试设置环境变量RSPEC,看起来它正在你的测试/单元目录中查找(假设你正在使用rspec!)
export RSPEC=true
它也可能是config / cucumber.yaml中的默认设置,它正在寻找一个不存在的文件。 暂时重命名此文件并查看它是否开始工作。 我不得不从我的地方删除大量的垃圾。 作为参考,它看起来像这样:
<%
# rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
# rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
# std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip"
std_opts = "--format progress features"
%>
default: <%= std_opts %>
wip: --tags @wip:3 --wip features
正如你所看到的,我评论了很多。
链接地址: http://www.djcxy.com/p/6601.html上一篇: Having trouble getting cucumber 6.3 to run on rails 2.3.4