forked from eclipse-pde/eclipse.pde
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to what we have for OSGi annotations, PDE should have OSGi Testing Support as it is a great library for testing OSGi applications. The most hindering thing in this regard is that it is rater complex to setup until one can make the first steps. This now adds a new classpath contributor that detects if a PDE project is already using JUNIT classpath container and then adds OSGi test dependencies automatically as test dependencies if they are part of the target platform or alternatively from the running platform. See eclipse-pde#877
- Loading branch information
Showing
10 changed files
with
339 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
features/org.eclipse.pde.osgitest.dependencies.feature/.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.eclipse.pde.osgitest.dependencies.feature</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.pde.FeatureBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.FeatureNature</nature> | ||
</natures> | ||
</projectDescription> |
2 changes: 2 additions & 0 deletions
2
.../org.eclipse.pde.osgitest.dependencies.feature/.settings/org.eclipse.core.resources.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 |
15 changes: 15 additions & 0 deletions
15
features/org.eclipse.pde.osgitest.dependencies.feature/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
############################################################################### | ||
# Copyright (c) 2000, 2023 IBM Corporation and others. | ||
# | ||
# This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License 2.0 | ||
# which accompanies this distribution, and is available at | ||
# https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# IBM Corporation - initial API and implementation | ||
############################################################################### | ||
bin.includes = feature.properties,\ | ||
feature.xml |
28 changes: 28 additions & 0 deletions
28
features/org.eclipse.pde.osgitest.dependencies.feature/feature.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
############################################################################### | ||
# Copyright (c) 2025 Christoph Läubrich and others. | ||
# | ||
# This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License 2.0 | ||
# which accompanies this distribution, and is available at | ||
# https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Christoph Läubrich - initial API and implementation | ||
############################################################################### | ||
featureName=OSGi Test Dependencies Feature | ||
providerName=Eclipse.org | ||
description=Feature to consume OSGi Test (https://github.com/osgi/osgi-test/) dependencies in target platforms using an Eclipse Release. | ||
copyright=\ | ||
Copyright (c) 2025 Christoph Läubrich and others.\n\ | ||
\n\ | ||
This program and the accompanying materials\n\ | ||
are made available under the terms of the Eclipse Public License 2.0\n\ | ||
which accompanies this distribution, and is available at\n\ | ||
https://www.eclipse.org/legal/epl-2.0/\n\ | ||
\n\ | ||
SPDX-License-Identifier: EPL-2.0\n\ | ||
\n\ | ||
Contributors:\n\ | ||
Christoph Läubrich - initial API and implementation\n |
31 changes: 31 additions & 0 deletions
31
features/org.eclipse.pde.osgitest.dependencies.feature/feature.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<feature | ||
id="org.eclipse.pde.osgitest.dependencies.feature" | ||
label="%featureName" | ||
version="1.0.0.qualifier" | ||
license-feature="org.eclipse.license" | ||
license-feature-version="0.0.0"> | ||
|
||
<description url="https://github.com/eclipse-osgi-technology/osgi-test"> | ||
%description | ||
</description> | ||
|
||
<copyright> | ||
%copyright | ||
</copyright> | ||
|
||
<license url="%licenseURL"> | ||
%license | ||
</license> | ||
|
||
<requires> | ||
<import plugin="org.osgi.test.common"/> | ||
<import plugin="org.osgi.test.junit5"/> | ||
<import plugin="org.osgi.test.junit5.cm"/> | ||
<import plugin="org.osgi.test.junit4"/> | ||
<import plugin="org.osgi.test.assertj.framework"/> | ||
<import plugin="org.osgi.test.assertj.log"/> | ||
<import plugin="org.osgi.test.assertj.promise"/> | ||
</requires> | ||
|
||
</feature> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.