Skip to content

Commit

Permalink
Enable Felix Tests in the Build
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Apr 22, 2024
1 parent fb2545f commit d8cc673
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*/*/bin/
bin_test
/bundles/archived/*/bin/
.DS_Store

Expand All @@ -8,4 +9,4 @@ target/
.polyglot.*
.META-INF_*
pom.tycho
.tycho-consumer-pom.xml
.tycho-consumer-pom.xml
7 changes: 7 additions & 0 deletions bundles/org.eclipse.osgi/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@
</classpathentry>
<classpathentry kind="src" path="supplement/src"/>
<classpathentry kind="src" path="container/src"/>
<classpathentry kind="src" output="bin_test" path="felix/src_test">
<attributes>
<attribute name="test" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions bundles/org.eclipse.osgi/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ output.. = bin/
javacWarnings..=-raw,unchecked,hiding,unused,warningToken
jars.extra.classpath = osgi/j9stubs.jar
jre.compilation.profile = JavaSE-1.8
additional.bundles = org.mockito.mockito-core
30 changes: 29 additions & 1 deletion bundles/org.eclipse.osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<version>${tycho.version}</version>
<configuration>
<compilerArgs>
<arg>-nowarn:[${project.basedir}/osgi/src${path.separator}${project.basedir}/felix/src]</arg>
<arg>-nowarn:[${project.basedir}/osgi/src${path.separator}${project.basedir}/felix/src${path.separator}${project.basedir}/felix/src_test]</arg>
</compilerArgs>
</configuration>
</plugin>
Expand All @@ -55,7 +55,35 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>execute-tests</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.11.0</version>
<scope>test</scope>
</dependency>

</dependencies>

</project>

0 comments on commit d8cc673

Please sign in to comment.