Using Guard to test Exercism.io exercises

Mitch Winkel-Davis
May 13 · 1 min read

I’ve been brushing up on my ruby learning using the Exercism.io exercises. What I don’t love about the process, is continually having to jump back into Terminal to run the test suite. Instead, I implemented a simple Guardfile on the source directory, to continually monitor all the subdirectories.

Files

(Put these in your Exercism track root directory, ie. ~/exercism/ruby/

Installing

  1. Change directory to your Exercism track folder ie:cd ~/exercism/ruby/
  2. Install guard, etc with bundle install

Running

bundle exec guard

*Edited 2nd June, 2019 to add colour support.

Mitch Winkel-Davis

Written by

Web Designer, Youth Worker & Coffee Lover. www.mitchwd.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade