内容简介:翻译自: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的钩子?》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
追踪Linux TCP/IP代码运行
秦健 / 北京航空航天大学出版社 / 2010-4-1 / 69.00元
本书以应用程序为线索,详细描述了数据包在协议栈的分段、重组、发送、接收过程,同时分析了路由的初始化和设置过程,主要包括socket应用程序、 TCP/IP协议、路由、通知链、邻居子系统等内容。全书涵盖了协议栈的全部知识点,对于广大的读者来说这是一本极其难得的技术资料。同时,书中论述了网络设备的工作原理,解释了RTL8169和嵌入式CS8900、DM9000网卡设备的核心过程。一起来看看 《追踪Linux TCP/IP代码运行》 这本书的介绍吧!