ruby-on-rails – Guard spork Rspec问题 – 如何删除Test :: Unit的钩子?

栏目: Ruby · 发布时间: 7年前

内容简介:翻译自: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的钩子?》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Art of Computer Programming, Volume 2

The Art of Computer Programming, Volume 2

Knuth, Donald E. / Addison-Wesley Professional / 1997-11-04 / USD 79.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 2》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具