Search code examples
rubyrspecguardgrowl

Is there a way to suppress Growl notifications when all the specs pass in guard-rspec?


Is it possible to suppress guard-rspec notifications when all the specs pass? I'd like to get a giant Growl notification when the specs fail, though. Is that possible?

i.e. Does such a setting exist in any part of the stack?

  1. guard-rspec
  2. guard
  3. the growl gem
  4. growlnotify command line app
  5. growl

Solution

  • In my version of Growl - the paid version from the Mac App store - which I use with the gntp gem I am able to configure a Guard option under the Applications tab in the Growl settings.

    Here you can enable or disable growl notifications for success or failure separately.

    There is one implication, if you disable success then you get the following line at the end of your test run where there were no errors:

    ERROR: Error sending notification with gntp: Notify failed
    

    For failures you will get a notification as expected.