English 中文(简体)
每一个无赖任务似乎都经过某种测试 我怎么能阻止它呢?
原标题:Every rake task seems to run some sort of test, how can I stop it?

自从我创建了这个3.2.3的铁路项目 使用迷你测试, 我一直收到这些消息 在雷克指挥线上:

Loaded Suite test/factories,test/helpers,test,test/models,test/requests

Started at 2012-05-22 10:04:01 -0400 w/ seed 45382.

Finished in 0.000229 seconds.

0 tests, 0 passed, 0 failures, 0 errors, 0 skips, 0 assertions

这本身就很奇怪,因为我做了几个测试,测试结果都很好。上面的信息是多余的,而且令人困惑。我怎么能摆脱它们呢?

最佳回答

正在以测试/ 单位装入自动运行文件 。 一旦文件被装入, 退出处理器就会设置, 打印进程结束时运行的测试次数 。

要修正它, 您需要识别哪些宝石导致自动运行文件被装入, 并停止在您的 Gemfile 中自动要求它 。

在我的案例中,“雕塑”是坚固的。为了修正它,我编辑了Gemfiles Gemfiles,这样添加了这样的雕塑:

gem "nutrasuite", :require => false

您需要确保您测试_ helper. rb 文件中要求的 图书馆导致它的任何内容, 但无论如何, 它应该如何设置 。

您可以通过试验和错误的过程来辨别造成问题的原因。 希望帮助...

问题回答

您也可以将其移动到自己的组。

group :test do
  gem  nutrasuite 
end

就我而言,那是因为我从宝石档案里 装了迷你试装品





相关问题
Vlad the Deployer - Usage Patterns?

I m starting to use vlad for new deployments and am wondering what s the best way to set it up so I can use the same tasks for my local development and remote production servers? I thought about ...

Installing Rake: invalid gem format

I installed Ruby on WinXP. Used rubyinstaller-1.8.6-p383-rc1.exe. Ran gem install rake Get error: Error installing rake: invalid gem format for C:/Ruby/lib/ruby/gems/1.8/cache/rake-0.8.7.gem I ...

ruby on rails undefined method(s) for active record

(in /Users/sayedgamal/apps/test) /Users/sayedgamal/apps/test/config/boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated == CreatePeople: migrating ====================...

missing rake tasks?

I have ran gem install rails and am running 2.3.4 but i am missing some rake tasks like db and gems if i run rake -T i get the following tasks. How can i get all the others ? rake apache2 # ...

Using Ruby popen and PostgreSQL createuser

I am attempting to write a very simple rake task (and merge it into a rather large rake task) that will call the following command and pass in a randomly generated password. For the moment, let s even ...

# TODO in rails

I had read through a rails book and once found we can add # TODO: and some # stuff in codes, so we can you some rake cmd to look back. My problems is I can t find where are those "# stuff" ...

热门标签