小编Tar*_*ank的帖子

“Rails 生成性能测试”不可用?

我目前正在尝试遵循Ruby on Rails 文档中给出的性能测试教程。但我在第一步就陷入了困境!

当我尝试运行下面给出的命令时,出现错误,

命令:

$ rails generate performance_test homepage
Run Code Online (Sandbox Code Playgroud)

我得到的错误:

Could not find generator 'performance_test'. Maybe you meant 'integration_test', 'resource_route' or 'coffee:assets'
Run Code Online (Sandbox Code Playgroud)

我跑去"rails generator --help"查看可以生成的可能文件,下面是我得到的输出,

Running via Spring preloader in process 9465
Expected string default value for '--jbuilder'; got true (boolean)
Usage: rails generate GENERATOR [args] [options]

General options:
  -h, [--help]     # Print generator's options and usage
  -p, [--pretend]  # Run but do not make any changes
  -f, [--force]    # Overwrite files that already …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails performance-testing

2
推荐指数
1
解决办法
838
查看次数

标签 统计

performance-testing ×1

ruby ×1

ruby-on-rails ×1