Skip to content

Instantly share code, notes, and snippets.

View frandieguez's full-sized avatar
🐈
Working from home

Fran Diéguez frandieguez

🐈
Working from home
View GitHub Profile
@frandieguez
frandieguez / test-guard.sh
Last active December 28, 2015 05:09
Run tests with every change in the app or tests code
#!/bin/bash
if ! which inotifywait > /dev/null; then
echo "You must install the inotify-tools package to use this script";
exit 1;
fi
while true; do
inotifywait -r -e modify src/ tests/ --excludei "(tpl|js|css|jpg|png|yml|yaml)$" &&
clear &&