Running gradle test -t and getting notified via Growl (or similar)?

Hello,

I’m wondering if I would be able to use gradle test -t for continuous testing loop on my code and be able to hook up a notification of failure to Growl or similar notifier?