新用户,我没有按照我的要求进行测试,所以我是个白痴。
应用程序正在运行,但测试失败。这似乎是相关的:
...
** Execute test:units
/usr/local/bin/ruby -I"lib:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/event_test.rb" "test/unit/helpers/calendar1_helper_test.rb" "test/unit/helpers/events_helper_test.rb" "test/unit/helpers/homepage_helper_test.rb" "test/unit/helpers/main_helper_test.rb" "test/unit/helpers/mobile_helper_test.rb" "test/unit/helpers/notes_helper_test.rb" "test/unit/helpers/password_resets_helper_test.rb" "test/unit/helpers/projects_helper_test.rb" "test/unit/helpers/search_helper_test.rb" "test/unit/helpers/start_helper_test.rb" "test/unit/helpers/superadmin_helper_test.rb" "test/unit/helpers/tasks_helper_test.rb" "test/unit/helpers/user_sessions_helper_test.rb" "test/unit/helpers/users_helper_test.rb" "test/unit/note_test.rb" "test/unit/notifier_test.rb" "test/unit/project_test.rb" "test/unit/task_test.rb" "test/unit/user_session_test.rb" "test/unit/user_test.rb"
/usr/lib/ruby/gems/1.8/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
/usr/lib/ruby/gems/1.8/gems/hpricot-0.6.164/lib/universal-java1.6/fast_xs.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0]
rake aborted!
Command failed with status (): [/usr/local/bin/ruby -I"lib:test" "/usr/loc...]
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
答案 0 :(得分:0)
Rake未能报告其运行测试的子进程被信号杀死的事实。
rake aborted! Command failed with status ():
请注意()之间缺少的退出代码。您可以通过运行“strace -o rake.strace rake”来查看信号,并查看结果文件的末尾附近,例如
[{WIFSIGNALED(s) && WTERMSIG(s) == SIGVTALRM}], 0, NULL)
在我的情况下,这是(可能是臭名昭着的)mysql 2.8.1 gem在“更新的ruby-1.8.6补丁程序”下运行时“虚拟计时器已过期”失败(-p399已损坏,不确定哪个更旧)版本仍然有效。)
[oops,忘了修复]
后续步骤......