内容简介:翻译自:https://stackoverflow.com/questions/14791957/guard-spork-rspec-issue-how-do-i-remove-hooks-to-testunit
我在Ubuntu 12.04上的rails 3.2.11项目上运行了guard-spork.
我从 railstutorial.org 获得了配置.
Spork开始,然后后卫说它找不到spork开始,等待30秒,然后60秒,然后工作.
它可以工作,但每次都会出错.只是想知道我做错了什么.
如何删除Test :: Unit的钩子?
错误信息:
16:31:58 - INFO - Starting Spork for RSpec, Test::Unit Using RSpec Preloading Rails environment Couldn't find a supported test framework that begins with 'testunit' Supported test frameworks: ( ) Cucumber (*) RSpec Legend: ( ) - not detected in project (*) - detected Loading Spork.prefork block... Rack::File headers parameter replaces cache_control after Rack 1.5. Spork is ready and listening on 8989! 16:32:28 - ERROR - Could not start Spork server for RSpec, Test::Unit after 30 seconds. I will continue waiting for a further 60 seconds. 16:33:28 - ERROR - Could not start Spork server for RSpec, Test::Unit. Make sure you can use it manually first.
或者你可以添加test_unit:false作为guard-spork的选项,即在你的Guardfile中:
guard 'spork', :rspec_env => { 'RAILS_ENV' => 'test' }, :test_unit => false do
我在’test’目录中执行了一些性能测试,因此删除test /并不总是一个选项.
翻译自:https://stackoverflow.com/questions/14791957/guard-spork-rspec-issue-how-do-i-remove-hooks-to-testunit
以上所述就是小编给大家介绍的《ruby-on-rails – Guard spork Rspec问题 – 如何删除Test :: Unit的钩子?》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
C++ Primer 中文版(第 4 版)
Stanley B.Lippman、Josée LaJoie、Barbara E.Moo / 李师贤、蒋爱军、梅晓勇、林瑛 / 人民邮电出版社 / 2006 / 99.00元
本书是久负盛名的C++经典教程,其内容是C++大师Stanley B. Lippman丰富的实践经验和C++标准委员会原负责人Josée Lajoie对C++标准深入理解的完美结合,已经帮助全球无数程序员学会了C++。本版对前一版进行了彻底的修订,内容经过了重新组织,更加入了C++ 先驱Barbara E. Moo在C++教学方面的真知灼见。既显著改善了可读性,又充分体现了C++语言的最新进展和当......一起来看看 《C++ Primer 中文版(第 4 版)》 这本书的介绍吧!