Home Download Buy Blog Forum Support

Testing plugins

Testing plugins

Postby guillermooo on Thu May 13, 2010 9:00 pm

Has anyone found an easy way to test plugins? Which mock framework are you using?
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Testing plugins

Postby guillermooo on Thu Jun 03, 2010 11:12 am

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:

http://bitbucket.org/guillermooo/sublim ... tip/tests/

I'm pretty new to testing, so I hope I'm not doing anything too wrong!
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Testing plugins

Postby asmodai on Sun Aug 08, 2010 9:51 pm

Your sublimeplugin.py has a typo:

Code: Select all
class ApplicationCommadn(Plugin):


should be

Code: Select all
class ApplicationCommand(Plugin):
asmodai
 
Posts: 73
Joined: Mon Mar 01, 2010 10:42 am

Re: Testing plugins

Postby guillermooo on Mon Aug 09, 2010 7:07 am

Thanks!
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 7 guests