A simple sbt-1.x plugin that sends native OS notifications when tests are completed. Uses Toast notifications on Windows (tested on Windows 10), Notification Center on Mac OS X (tested on Mac OS X Yosemite) and libnotify
on Linux (requires libnotify-bin
package, tested on Ubuntu with Gnome).
NOTE: This is a fork. Original repository is https://github.com/PavelPenkov/sbt-notifications
Add the following to ./project/plugins.sbt
:
addSbtPlugin("laughedelic" % "sbt-notifications" % "0.1.0")
By default you will get notifications on test runs: when they fail and when they pass. To receive notifications only when tests failed use
notifyFailureOnly := true
in build definition. Here's an example:
You can also configure the plugin to get notified on completion of a particular task. For example:
notifyOn(compile in Compile)
Or
notifyOn(compile in Test)