5

I know that RSpec has the --profile option, but I'm only using MiniTest/shoulda for my current project.

Farley Knight
  • 1,795
  • 1
  • 13
  • 17

2 Answers2

9

You can use minitest-reporters for this purpose. This gem provide multiple reporters to see output of your tests.

Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new

Spec reporter shows the time which each test take to run. It shows the time on console, not as a report.

Malik Shahzad
  • 6,703
  • 3
  • 37
  • 49
9

You can just use:

rake TESTOPTS="-v"

right out of the box. eg:

rake TESTOPTS="-v" test:controllers

I have tested this with Ruby 1.9.3 on Rails 3.2.

jpgeek
  • 4,991
  • 2
  • 28
  • 26