sakovias
sakovias

Reputation: 1434

Ruby on Rails: how to find the slowest tests?

I'm writing tests using the default Rails testing framework. Is there a way to find which tests are the slowest?

Upvotes: 4

Views: 1528

Answers (2)

mcfoton
mcfoton

Reputation: 335

With Rails 7.1 you can now do

rails test --profile

Upvotes: 3

TK-421
TK-421

Reputation: 10763

How about minitest-reporters, as suggested here:

How can I generate a report that shows me my slowest running tests in Rails 3.2, Ruby 1.9?

It's Rails 4-compatible, and the Installation and Usage sections on GitHub show how to configure the SpecReporter option.

Upvotes: 3

Related Questions