Skip to content

Commit

Permalink
[124] Add jakarta.json-tck-tests-pluggability test runner.
Browse files Browse the repository at this point in the history
Signed-off-by: James R. Perkins <[email protected]>
  • Loading branch information
jamezp committed Nov 9, 2023
1 parent 153341a commit ce745ae
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
114 changes: 114 additions & 0 deletions core-profile/jsonp-plugability-tck/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright \(c\) "2022" Red Hat and others
~
~ This program and the accompanying materials are made available under the Apache Software License 2.0 which is available at:
~ https://www.apache.org/licenses/LICENSE-2.0.
~
~ SPDX-License-Identifier: Apache-2.0
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<!-- Just for staging proflie access (-Pstaging) for unreleased Jakarta APIs -->
<parent>
<groupId>org.wildfly.tck</groupId>
<artifactId>core-tck-runner-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<artifactId>jsonp-plugability-tck-runner</artifactId>
<name>WildFly Jakarta JSON-P Plugability TCK Runner</name>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.netbeans.tools</groupId>
<artifactId>sigtest-maven-plugin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-tck-tests-pluggability</artifactId>
<version>${jsonp.tck.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<version>${weld.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-test-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<!-- Export the properties defined below so they can be used for the signature tests -->
<exportAntProperties>true</exportAntProperties>
<target>
<fileset id="json-jar"
dir="${jboss.home}${file.separator}modules/system/layers/base/jakarta/json/api/main/">
<include name="**/jakarta.json-api*.jar"/>
</fileset>
<pathconvert pathsep="," property="jakarta.json.jar" refid="json-jar"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<configuration>
<skip>true</skip>
</configuration>
</execution>
<execution>
<id>json-bind-tck-tests</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
<additionalClasspathElements>
<additionalClasspathElement>${jakarta.json.jar}</additionalClasspathElement>
</additionalClasspathElements>
<dependenciesToScan>
<dependency>jakarta.json:jakarta.json-tck-tests-pluggability</dependency>
</dependenciesToScan>
<trimStackTrace>false</trimStackTrace>
<failIfNoTests>true</failIfNoTests>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>

1 change: 1 addition & 0 deletions core-profile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
<module>cdi-tck</module>
<module>core-tck</module>
<module>inject-tck</module>
<module>jsonp-plugability-tck</module>
<module>jsonp-standalone-tck</module>
<module>jsonb-standalone-tck</module>
<module>rest-tck</module>
Expand Down

0 comments on commit ce745ae

Please sign in to comment.