Eclipse plugin development with TDD
I want to add a view to a perspective without accessing the perspective source code. Is it possible?
Is there a good tutorial for plugin development using TDD?
[edit] I think I have a good starting point with TDDing in plugin development Automation of unit tests (junit) for Eclipse plugin development
[edit 02/17/09] I was able to download the source for the plugin. I'm probably going to crush it.
source to share
GUI testing is a PAIN! And the pain grows exponentially with the complexity of the gui design. It is best to keep the business logic separate from the GUI as much as possible with the MVC pattern, and when testing the gui, connect the GUI to a "mock" application.
See Skew Object Document, Humble Dialog Box
source to share
You might want to take a look at the org.eclipse.ui.perspectiveExtensions extension point.
And here is a good article dealing with Perspective: Using Perspective in Eclipse UI
Sorry, can't help you with the TDD part of your question.
source to share
If your goal is simply to add a view to a perspective in your own Eclipse instance, you can simply open it from that perspective and select Window → Save Perspective As ...
For unit test units, you can basically test them using regular JUnit tests that you run as JUnit test units instead of regular JUnit tests in Eclipse. For testing the GUI, you can check out SWTBot .
source to share