18

I want a pretty-printed summary of what tests are running, similar to

rspec --color --format doc

Can minitest do that?

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Seamus Abshere
  • 8,326
  • 4
  • 44
  • 61

2 Answers2

17

"How to color unit tests with lib minitest or Test:Unit? is a similar question. Several options are provided there:

Community
  • 1
  • 1
Dty
  • 12,253
  • 6
  • 43
  • 61
11

I've tried pride, Turn, Purdytest, and RedGreen. Among those, Turn's format is closest to rSpec.

However, I recommend MiniTestReporters over any of them. It offers several nice formats out of the gate, including an rSpec-ish one customized for viewing in TextMate (it intelligently handles ANSI color codes, for instance) and one that is similar to Turn/rSpec. MR's ProgressReporter format is especially nice for slow test suites, since it dynamically updates tests' status and total time remaining, instead of making you wait. MR also makes it easy to create a custom format.

If none of those suit, another option is MiniTest Colorize.

cczona
  • 352
  • 4
  • 12