Sublime Forum

Testing plugins

#1

Has anyone found an easy way to test plugins? Which mock framework are you using?

0 Likes

#2

For what it’s worth, I’m now using Michael Foord’s mock library to test plugins and it works like a charm.

You can see an example here:

bitbucket.org/guillermooo/sublim … tip/tests/

I’m pretty new to testing, so I hope I’m not doing anything too wrong!

0 Likes

#3

Your sublimeplugin.py has a typo:

class ApplicationCommadn(Plugin):

should be

class ApplicationCommand(Plugin):
0 Likes

#4

Thanks!

0 Likes