Testing Sublime Text Packages
Python Shell PowerShell C++ JavaScript
Latest commit 5eaadaf Jul 28, 2016 @randy3k do not show console



Build Status Build status Coverage Status

This is a unittest framework for Sublime Text 2 and 3. It helps in running Sublime Text plugins' tests on local machines or via CI services such as travis-ci and appveyor. It also supports testing syntax_test files for the new sublime-syntax format.


There are at least 3 testing frameworks for Sublime Text in town. For example,

  1. https://github.com/guillermooo/AAAPT
  2. https://bitbucket.org/klorenz/sublimepluginunittestharness
  3. https://github.com/twolfson/sublime-plugin-tests

While AAAPT and pluginunittestharness work natively in Sublime, they are only for Sublime Text 3 and do not work with travis-ci. On the other hand, sublime-plugin-tests supports travis-ci. But it requires nosetest and creates a lot of confusions. Given my disappointment with all these frameworks, I decide to write my own framework.

Getting started sample

It is hard to explain the usage without an example, so I have created UnitTesting-example. The tests in this repo are written to test this plugin and they do not help in regular use case. Go to the getting started sample instead.


Thanks guillermooo and philippotto for their efforts in AppVeyor and Travis OSX support.