re: Rspec or Minitest for testing Rails apps VIEW POST


I've only used rspec really

Since you've used both, what do you like about minitest?


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 ;).
code of conduct - report abuse