Running unit tests with the Eclipse Testing Framework can be a real pain. I’ve tried to provide some help in previous posts. But one thing I haven’t addressed is how to properly set up a unit test environment.
The first question you might have is what is a test environment and why do I need one?. Well the short answer is that the Eclipse Testing Framework has a set of plug-ins it needs to run. The complete set of necessary plug-ins I refer to as a test environment. Yes, I just made this up, but it works for me.
In almost all cases, a test environment is composed of three things:
- A complete copy of the Eclipse SDK.
- The Eclipse Testing Framework.
- Your code. This includes both your production plug-ins along with any plug-ins or fragments containing unit tests.


Also for fun try clicking on the ‘JUnit Support in Eclipse’ in ‘Eclipse Testing Framework ‘ (http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.test/testframework.html?view=co) link above
[...] Updated PDE Build and Test Example I’ve just spent some time updating my example showing how to set up PDE Build and the Eclipse Testing Framework. I’ve generally cleaned things up and I’m now creating the test environment in the correct way. [...]