DEV Community

Discussion on: Rspec or Minitest for testing Rails apps

truggeri profile image
Thomas Ruggeri Author

Good question. Some things I like about minitest,

  • It takes very few lines of code to write some simple tests. Many of the tests that I've been writing are only a few lines long and very clear on their intention.
  • Unlike Rspec, it doesn't have an opinionated view on the way the tests should be written. When getting started with Rspec, it feels very foreign because of the testing DSL they created. Minitest doesn't take nearly as much to get started with.
  • I don't need to refer to the documentation nearly as often as I do with Rspec. I don't know if that's because I haven't done enough with Minitest yet ;).