Why is my list of generators not complete? Missing performance_test

I am not completely familiar with Rails, but Google (although not very similar to it) could not help me this time.

I am running a Rails installation customized by someone else. This is what I get when I run rails g:

Usage: rails generate GENERATOR [args] [options]

General options:
  -h, [--help]     # Print generator options and usage
  -p, [--pretend]  # Run but do not make any changes
  -f, [--force]    # Overwrite files that already exist
  -s, [--skip]     # Skip files that already exist
  -q, [--quiet]    # Suppress status output

Please choose a generator below.

Rails:
  assets
  controller
  generator
  helper
  integration_test
  jbuilder
  mailer
  migration
  model
  resource
  scaffold
  scaffold_controller
  task

Bootstrap:
  bootstrap:install
  bootstrap:layout
  bootstrap:partial
  bootstrap:themed

Coffee:
  coffee:assets

Jquery:
  jquery:install

Js:
  js:assets

TestUnit:
  test_unit:plugin

You will notice that several generators are missing, among which the performance_testone I'm trying to use.

Why is this list empty? How to install missing generators? I am running version 4.0.3.

+4
source share
1 answer

As with rails, 4 performance tests are no longer part of the default stack. If you want to use performance tests, just follow these instructions.

Gemfile:

gem 'rails-perftest'

/ MRI REE, :

gem 'ruby-prof'

, .

rails-perftest

+12

Source: https://habr.com/ru/post/1532784/


All Articles