The Crystal Programming Language Forum

Makefile for running tests when files change

Hello everyone!

I’ve been using this Makefile for running my tests when things change. It works for built-in spec as well as

Set the TEST_RULE to either spec or test and run make watch in a window.

After digging around a bit I actually found a guard extension as well. Of course there’s also sentry, but I find this Makefile simple and it works well enough for me.