In RSpec 2 and 3, you can use the --profile flag or add --profile to your .rspec file. This will track the top 10 slowest examples.
For RSpec 1, you can use --format o with spec command. It shows a text-based progress bar with profiling of 10 slowest examples. For more details see this.
rspec --profile -- path/to/file/spec.rb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With