Skip to content

blitzrk/UnitTesting

 
 

Repository files navigation

UnitTesting

Linux & OSX Windows
Build Status Build 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.

If you like it, you could send me some tips via paypal or gratipay.

Introduction

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.

Credits

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

About

Testing framework for Sublime Text 2 and 3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 80.0%
  • Shell 10.0%
  • PowerShell 7.6%
  • C++ 2.1%
  • JavaScript 0.3%