Wednesday, March 23, 2011

10 Techniques to Test a Plug-in

This guy was full of good ideas. He's putting together a blog that will have code samples and more details on testing:
  1. MANIFEST.MF using OSGi PlatformAdmin service for basic identity values and dependencies
  2. plugin.xml, e.g. parsing extension points .exsd files to determine attributes then testing extensions for valid values
  3. commands and handlers using ICommandListener and IExecutionListener
  4. views and editors using IWorkbench and reflection
  5. a PropertyTester by parsing its extension to drive tests using IEvaluationService with various values
  6. a SourceProvider, testing its variable is the same when obtained from the extension, the implementation class, and from its current state
  7. expressions as used in a plugin.xml using the IEvaluationService with various contexts
  8. dialogs and wizards using Display.timerExec()
  9. unwanted messages using an ILogListener and replacing the default system.out stream
His blog is at http://blog.rcp-company.com/ and I will definitely be checking back with this guy.

No comments:

Post a Comment