Unit tests Follow
Are you guys using unit tests to drive your code? Is so, is there a unit
testing framework for the plugins? I.e., something that my tests can
inherit from to make sure that the important pluginish behavior is observed?
Please sign in to leave a comment.
Hello Amir,
I'm afraid there is currently no such dedicated framework for testing plugins.
It seems for me that most of common aspects of a plugin lifecycle (like proper
unregistering event handlers) are not easy to test via unit tests. However,
may be
we have to think of such a framework.
Most of our internal tests inherit from base test classes named 'BaseTest*'
(check
the TestFramework assembly for them). It allows to test a feature functionality
leaving
the boilerplate activities (like creating project, opening and closing solution)
to the base
classes.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"