So after spending some time googling I finally got autotest to work on ubuntu with autotest-notification
It is working fine too. Just got a minor issue.
When I get an error the graphical notification pops up with the RED code . Then if I go fic the errors , the notification should turn green, but it doesn't. It continues to show the RED message.But the process in the terminal shows the correct result, it's just the graphical notification.
For example : This is the success message in terminal.
This is success message in notification.
Then I commit a mistake.
The notification is
Then I fix the errors and :
The FAIL notification continues to show up.
Once again all the code I use is from here
I followed these steps.
Anyways I have managed to fix it somehow
$ sudo gem uninstall ZenTest
And then
$ sudo gem install autotest-notification
$ an-install
seems to do the trick. So I basically uninstalled zentest and installed autotest-notification agian and it works fine now.