There are at least 3 testing (unittest) frameworks for Sublime Text in town:
https://bitbucket.org/klorenz/sublimepl ... estharness
They all have their own pros and cons. AAAPT and pluginunittestharness work natively in Sublime, but they are ST3 only and do not work with travis-ci. On the other hard, sublime-plugin-tests is better in that sense and supports travis-ci, however tests are not run natively in Sublime. After playing with all those frameworks, I decided to write my own framework.
It is hard to explain the usage without an example, so I have created an getting start example here: https://github.com/randy3k/UnitTesting-example
IT WORKS WITH TRAVIS-CI !!