gpt4 book ai didi

ruby - Rails 3.0.7 rake 功能测试在 create_shell_runner 的 "file_utils.rb:53:in ` block 中给出了奇怪的错误'”

转载 作者:太空宇宙 更新时间:2023-11-03 16:35:52 25 4
gpt4 key购买 nike

奇怪的是,之前的运行运行良好并列出了 20 多个失败/错误。我一个一个地修复了每个单独的功能测试。然后我运行了完整的功能测试并得到了以下错误,但没有告诉我哪个特定的功能测试失败了。

任何 Rails 大师都可以阐明这个问题吗?提前致谢。

/demoslm$ rake test:functionals --trace  > test_2.txtWARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.    at /home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/rdoctask.rb** Invoke test:functionals (first_time)** Invoke test:prepare (first_time)** Invoke db:test:prepare (first_time)** Invoke db:abort_if_pending_migrations (first_time)** Invoke environment (first_time)** Execute environment** Execute db:abort_if_pending_migrations** Execute db:test:prepare** Invoke db:test:clone_structure (first_time)** Invoke db:structure:dump (first_time)** Invoke environment ** Execute db:structure:dump** Invoke db:test:purge (first_time)** Invoke environment ** Execute db:test:purge** Execute db:test:clone_structure** Execute test:prepare** Execute test:functionalsrake aborted!Command failed with status (1): [/home/ubuntu/.rvm/rubies/ruby-1.9.2-p180/b...]/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/file_utils.rb:82:in `ruby'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/test_unit/testing.rake:26:in `block (2 levels) in define'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in `verbose'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/test_unit/testing.rake:11:in `block in define'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'/home/ubuntu/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2.2/bin/rake:33:in `'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `load'/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `'Tasks: TOP => test:functionals

最佳答案

我很幸运地解决了这个问题。

rake test:functionals TESTOPTS="-v" --trace

将吐出更多详细信息。我很惊讶 trace 没有吐出足够的细节,至少 func

关于ruby - Rails 3.0.7 rake 功能测试在 create_shell_runner 的 "file_utils.rb:53:in ` block 中给出了奇怪的错误'”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7895064/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com