如何添加“耙子测试”投影
当我运行 rake -
T 时,我发现 rake test
丢失了。我需要做什么才能完成这个任务?具体来说,我想运行 rake test:benchmark
但似乎没有加载。例如...
$rake test:benchmark
rake aborted!
Don't know how to build task 'test:benchmark'
When I ran rake -
T, I discovered rake test
was missing. What do I need to do to get this task in there? Specifically, I want to run rake test:benchmark
but that doesn't seem to be loaded. For example...
$rake test:benchmark
rake aborted!
Don't know how to build task 'test:benchmark'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的 config/application.rb 文件缺少此行:
My
config/application.rb
file was missing this line:您只需要:
<代码>
需要“rails/test_unit/railtie”
在您的
config/application.rb
中You only need:
require "rails/test_unit/railtie"
in your
config/application.rb