Autotest Notify OSD
-
Author: Stephen H. Gerstacker (shortround.net)
-
Forked From: github.com/svoop/autotest-growl
DESCRIPTION:
This gem aims to improve support for Notify OSD notification by ZenTest’s autotest. It comes with a nice colored Ruby icon set and - for now - supports Cucumber notifications by means of a workaround.
REQUIREMENTS:
-
Notify OSD
-
ZenTest >= 4.1.3
INSTALL:
This gem has now been moved to Gemcutter. If you haven’t used Gemcutter before, do the following:
sudo gem install gemcutter
sudo gem tumble
Now, install the gem:
sudo gem install autotest-notify-osd
Then add the following line to your ~/.autotest file:
require 'autotest/notify-osd'
Make sure Notify OSD is installed on your computer. You can download it from:
CONFIGURATION:
Custom Icons
Using your own set of icons is pretty simple. Just create a directory ~/.autotest-notify-osd, copy your icons there and name them passed.png, pending.png, failed.png, error.png and info.png.
Don’t Clear the Terminal
Add the following to your ~/.autotest if you don’t want the terminal to be cleared before running a test:
Autotest::NotifyOSD::clear_terminal = false
Hide the Label
If you prefer the notifications not to show labels such as “LABEL: All tests have passed”, add the following to your ~/.autotest:
Autotest::NotifyOSD::hide_label = true
One Notifications per Run
Allow only one test and one feature notification per run by adding the following to your ~/.autotest:
Autotest::NotifyOSD::one_notification_per_run = true
Show Modified Files
Add the following to your ~/.autotest if you would like to receive a NotifyOSD notification listing the files modified before tests are re-run.
Autotest::NotifyOSD::show_modified_files = true
LICENSE:
(The MIT License)
Copyright © 2009 Stephen H. Gerstacker
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.