Skip to content

Commit 41be98b

Browse files
committed
Add N&N for PDE OSGi Test Support
1 parent 53b72c2 commit 41be98b

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

3.86 KB
Binary file not shown.

news/4.37/pde.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
A special thanks to everyone who [contributed to PDE](acknowledgements.md#plug-in-development-environment) in this release!
44

5+
## General Updates
6+
7+
### OSGi Test Framework Support
8+
9+
<details>
10+
<summary>Contributors</summary>
11+
12+
- [Christoph Läubrich ](https://github.com/laeubi)
13+
</details>
14+
15+
The [OSGi Testing Support](https://github.com/eclipse-osgi-technology/osgi-test#osgi-testing-support) is a great library for testing OSGi applications,
16+
and PDE now add first-class support as it does for OSGi Annotations already.
17+
18+
To enable this do the following:
19+
20+
1. Make sure your target platform contains the necessary OSGi test dependencies, to make this more easy PDE provides a feature named `org.eclipse.pde.osgitest.dependencies.feature`.
21+
2. Go to the [Build Path Settings](https://help.eclipse.org/latest/topic/org.eclipse.jdt.doc.user/reference/ref-properties-build-path.htm) and add the JUNIT Library under the [Libraries Tab](https://help.eclipse.org/latest/topic/org.eclipse.jdt.doc.user/reference/ref-properties-build-path.htm#libraries) but do not add any JUnit or OSGi Testing imports/requirements to your manifest!
22+
3. Place your Tests into a source folder marked as test source
23+
24+
PDE will then automatically add required dependencies for OSGi Testing Support and you can use all the standard annotations right now.
25+
26+
After that just run your tests as the usual plugin test, you can find an example [here](examples/osgitest-example.zip), if you find any issues or has suggestions don't hesitate to let us know and open an issue [here](https://github.com/eclipse-pde/eclipse.pde/issues).
27+
528
<!--
629
## Editors
730
-->

0 commit comments

Comments
 (0)