Pregunta

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

rspec --color --format doc

Can minitest do that?

¿Fue útil?

Solución

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

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top