Community
Participate
Working Groups
Similarly to bug 248508 for error log view, unit tests for pde.runtime may be of great benefit for everybody: plug-in maintainers as well as others who'd like to extend or reuse it.
Created attachment 115930 [details] org.eclipse.pde.runtime.tests.zip source code of tests plugin. It contains 3 classes: AbstractRegistyModelTest - unit tests for registry model, independent from backend LocalModelTest - run AbstractRegistryModelTests on Local backend TestUtils - util classes used i unit tests Additionally testplugins directory contains a simple plug-in that's used during install/uninstall to generate some real notifications from OSGi.
Created attachment 115931 [details] org.eclipse.pde.runtime.tests.zip source code of tests plugin. It contains 3 classes: AbstractRegistyModelTest - unit tests for registry model, independent from backend LocalModelTest - run AbstractRegistryModelTests on Local backend TestUtils - util classes used i unit tests Additionally testplugins directory contains a simple plug-in that's used during install/uninstall to generate some real notifications from OSGi.
Created attachment 115932 [details] patch Patch to pde.runtime, that makes all tests should pass. I've found this issues when creating junit tests.
Tests give 48% coverage to pde.runtime.model package which contains all the logic behind the view.
done. > 20081023 Thanks Jacek! I moved and refactored the tests to live in the org.eclipse.pde.ui.tests plug-in.