class Rails::Generators::PluginGenerator

def test_command

def test_command
  if engine? && !options[:skip_active_record] && with_dummy_app?
    "bin/rails db:test:prepare test"
  elsif engine?
    "bin/rails test"
  else
    "bin/test"
  end
end