A tale of two testing frameworks

A7100969143eaac527fc93233801f447?s=47 Simon van Dyk
September 14, 2015

A tale of two testing frameworks

There are two main testing frameworks for Ruby code: RSpec and Minitest. I learnt testing coming to Ruby using RSpec as many of our companies Rails app used it.

As I gained more experience, I begun to wonder why. I started to feel subtle pains of maintaining a large RSpec codebase. On my latest project I gave minitest a go, and this is what I learnt:

There's no true winner. I prefer the simplicity of Minitest, but because RSpec is so popular, you need to know both frameworks as a professional Rubyist.


Simon van Dyk

September 14, 2015