Wednesday, August 18, 2010

Run customized process to notify JUnit results

I made a plugin to run customized process to notify JUnit results. Before I introduced to notify JUnit results to Grows Eclipse Plugin beforeThen Ketan's comment, "+1 for a custom command line preference this would be useful to people on other operating system". I agreed with him.So I made a plugin.If you'd like to install the plugin, could you please download jar file and copy to your dropins folder in your Eclipse.Default setting is to run growlnotify.If you want to customize that process, please open preference page and choose "Java->JUnit->Process Notification" like below.

If I use this plugin on Ubuntu linux 10.4, this plugin integrated with NotifyOSD.
The process setting is like below.

/usr/bin/notify-send -i /home/kompiro/>eclipse/icon.xpm ${summary} ${detail}

If I use this plugin on Windows, this plugin integrated with Snarl and Snarl_CMD.
The process setting is like below.
C:\Snarl_CMD_1.0\Snarl_CMD.exe snShowMessage 2 "${summary}" "${detail}

I think this plugin is not only use for notification. If you'd like to store testing log, you can use shell, script, batch, and so on.
Enjoy your testing!