Posted by Szymon Jeż
Sat, 28 Mar 2009 23:02:00 GMT
Recently I wrote (in Polish1) about problems with NetBeans integration with ZenTest Autotest (en) and posted my solution how to setup on screen notifications from Autotest (en). Then, a few days ago, I found2 test_notifier written by Nando (fnando) Vieira. This lib, avaible as a RubyGem:
gem install fnando-test_notifier --source=http://gems.github.com
is in my opinion an ideal solution for getting notifications from not only tests ran by Autotest but Test::Unit and RSpec test in general. Using it we can get convenient notifications about the results of our tests. Combined with Autotest we get a combo: automated, ran in the background, continuous testing + convenient notifications.

Please go and try it for yourself – it’s easy to setup and use as described in the REDME on the project Github page.
1 Use the (en) links to read the original articles translated to English by Google. The translation is kind of funny but you can get the idea about what I wrote.
2 Actually I found it, forked it, hacked a bit (added osd_cat, and knotify support, improved help hints when there is no notification software installed) and pushed it back to fnando so he could merge my changes. Thanks to Git and GitHub all of the contribution was a pleasure.
Posted in in english, narzędzia, ruby | Tags autotest, combo, knotify, notifications, osd_cat, RSpec, Ruby, test, test_notifier, testowanie, tests, unit, unit | no comments | no trackbacks
Posted by Szymon Jeż
Sat, 28 Mar 2009 23:02:00 GMT
Recently I wrote (in Polish1) about problems with NetBeans integration with ZenTest Autotest (en) and posted my solution how to setup on screen notifications from Autotest (en). Then, a few days ago, I found2 test_notifier written by Nando (fnando) Vieira. This lib, avaible as a RubyGem:
gem install fnando-test_notifier --source=http://gems.github.com
is in my opinion an ideal solution for getting notifications from not only tests ran by Autotest but Test::Unit and RSpec test in general. Using it we can get convenient notifications about the results of our tests. Combined with Autotest we get a combo: automated, ran in the background, continuous testing + convenient notifications.

Please go and try it for yourself – it’s easy to setup and use as described in the REDME on the project Github page.
1 Use the (en) links to read the original articles translated to English by Google. The translation is kind of funny but you can get the idea about what I wrote.
2 Actually I found it, forked it, hacked a bit (added osd_cat, and knotify support, improved help hints when there is no notification software installed) and pushed it back to fnando so he could merge my changes. Thanks to Git and GitHub all of the contribution was a pleasure.
Posted in in english, narzędzia, ruby | Tags autotest, combo, knotify, notifications, osd_cat, RSpec, Ruby, test, test_notifier, testowanie, tests, unit, unit | no comments | no trackbacks
Posted by Szymon Jeż
Mon, 23 Mar 2009 08:47:00 GMT
Zamieściłem tu rozwiązanie problemu związanego ze współdziałaniem NetBeans z Autotest jaki opisałem w poprzednim artykule.
Według moich doświadczeń najwygodniej jest uruchamiać testy w tle używające Autotesta w konsoli oraz wspomagać się nieblokującymi zawsze widocznymi powiadomieniami na ekranie o wynikach tychże testów. Uruchomienie Autotesta w konsoli nie stanowi żadnego problemu wystarczy wydać polecenie autotest w katalogu głównym naszego projektu i jeśli mamy w nim odpowiednią strukturę katalogów to Autotest powinien uruchamiać testy w sposób automatyczny w tle prezentując nam na konsoli ich wyniki. Aby otrzymać powiadomienie o wynikach testów najlepiej skonfigurować Autotesta tak aby korzystał z rozwiązań jakie oferują nam programy specjalnie do tego stworzone dostępne na naszej platformie. Dla Linux może to być knotify, libnotify, osd_cat, dla MacOS będzie to Growl, a dla Widnows jest podobny doń Snarl.
Read more...
Posted in narzędzia, ruby | Tags autotest, Growl, knotify, konsola, libnotify, narzędzia, NetBeans, osd_cat, Ruby, Snarl, testowanie, tests, unit | no comments | no trackbacks
Posted by Szymon Jeż
Wed, 11 Feb 2009 22:40:00 GMT
ZenTest Autotest chyba zna każdy programista Ruby i nie trzeba go im przedstawiać. Jeśli go nie znasz lub o nim słyszałeś, a nie używasz, to polecam nadrobić zaległości (jeśli nie programujesz w Ruby spróbuj znaleźć podobne rozwiązanie w twoim języku). Jest to narzędzie, które sprawia, że napisane przez nas testy są jeszcze bardziej użyteczne (bo autotest jak anioł dzięki nim czuwa nad nami i daje nam znać, gdy któryś test nie przechodzi poprawnie), przez co mamy większą motywację do ich pisania (a o to często trudno). Ostatnio miałem spore przejścia z Autotestem i IDE NetBeans i właśnie o nich jest ten wpis.

Read more...
Posted in narzędzia, rails, ruby | Tags autotest, IDE, interfejs, konsola, narzędzia, NetBeans, oprogramowanie, Ruby, testowanie, tests, unit | no comments | no trackbacks