Creating custom Minitest reporters

1 · Nando Vieira · April 30, 2015, 5:38 p.m.
Minitest it’s having some momentum right now. I’ve been using it on some personal projects and, coming from RSpec, I really missed its awesome execution report. Minitest has some 3rd-party reporters, but they don’t get any close to RSpec’s awesomeness. So I decided to dive into Minitest source code and learn how to create a custom Minitest reporter similar to RSpec’s reporter. Here’s the final result: Note that it even gives you the command for running only the test that failed, pretty much lik...