2

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
4

1 回答 1

5

在我的 Growl 版本(来自 Mac App Store 的付费版本)中,我将它与gntpgem 一起使用,我可以在 Growl 设置Guard的选项卡下配置一个选项。Applications

在这里,您可以分别启用或禁用成功或失败的咆哮通知。

有一个含义,如果您禁用成功,那么您会在测试运行结束时得到以下行,其中没有错误:

ERROR: Error sending notification with gntp: Notify failed

对于失败,您将按预期收到通知。

于 2012-03-30T12:44:01.160 回答