Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

144
Visualizações
Is there a simple way to find slow specs

When running all specs in a project I have not touched in a while, I noticed that there seem to be 2 specs that take ages. I suspect some mocking of an API call or similar is not working anymore and the specs are running into a timeout.

Is there an easy way to identify those 2 specs without going manually through all spec files?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You can enable profiling by using the -p flag when running rspec

Or you can permanently enable profiling by adding

config.profile_examples = true

or, for example,

config.profile_examples = 5

to your Rspec configuration in spec/spec_helper.rb.

By default, it prints the 10 slowest examples, but you can set it to a different value to have it print more or fewer slow examples.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda