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.

