RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

chriskottom — 6 posts

You can run Minitest directly from the Ruby interpreter to target single test cases or specific tests. This post calls attention to a few of the framework's own command line options that aren't well publicized but which can be useful for these scenarios.
Fixing Fixtures
For a long time, using Rails fixtures was considered bad form, but in recent years, a lot of developers have come back around to using them. This post provides tips and practices for simplifying your fixtures and making them easier to manage.
RSpec gives you a number of ways of setting up prior to test runs, but only some of these have direct analogs in Minitest. In this post, I show you the code that will let you approximate RSpec's features (and explain when and why you might want to avoid using it).
Practical advice for Minitest's parallelization including how it works, when and how to use it, and when you might want to think twice about it.
Minitest earns a lot of praise for being simple to pick up, but did you know that you can add your own custom assertions and expectations to make your tests read the way you want them to?
Hacking Minitest output for fun and profit: