Here’s a way, using clojure, to get your tests alerts on twitter.
Go get jtwitter, put it in your classphath and create:
(update "username" and "password" with your twitter login)
Then hook it up to the “test-is” library(test library in clojure): just overwrite the report summary method that by default prints out the summary of the executed tests.
Before:
After:
Just added a line calling the twitter-update method.
And thats it, now every time you run your tests, you will have the failures and errors twittered:
I've created a 2nd account on twitter where i post these automated messages. And have my clojure tests(regression tests actually) running every week, and letting me know if all is good.
This little twitter-update is very easy to use for any kind of alerts and automations.
No comments:
Post a Comment