Testing Add-on Automatically

Hi,

I’m developing Blender’s add-on.
Recently, I want to test add-on automatically because my add-on is refactored frequently by many user’s requests.
So, is there any tutorials about automatical testing?

I think automatical testing can be done with CI services. (e.g. TravisCI)
And testing will be done with console (not GUI) only.

Any ideas?