twolfson / sublime-plugin-tests

Testing framework for Sublime Text plugins
The Unlicense
22 stars 2 forks source link

Add initialization hooks (allows for assertions) #12

Open twolfson opened 11 years ago

twolfson commented 11 years ago

We should set up a global mediator inside of plugin_runner that has a list of instanceof checks to perform on imported items. Whenever a check matches, it will proxy that item via the specific middleware for that instanceof check.

This would attach to assertions by detecting imported TestCases and instantiating them appropriately.

We would use a mediator so we have nice global add/get methods.