Skip to content

Instantly share code, notes, and snippets.

@liweinan
Last active March 1, 2022 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liweinan/4bec8e8f0c57ca463fb55169d3d8a4ee to your computer and use it in GitHub Desktop.
Save liweinan/4bec8e8f0c57ca463fb55169d3d8a4ee to your computer and use it in GitHub Desktop.
Jakarta REST 3.1 TCK Running Process

The Pull Request

Use Java 17

➤ java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)

Add James Forked Repository

➤ git remote add jamezp https://github.com/jamezp/resteasy.git

Fetch Tck Branch

Fetch jamezp repository:

➤ git fetch jamezp

Checkout branch:

➤ git checkout add-tck

Build firstly

➤ mvn clean -DskipTests install
...
[INFO] RESTEasy Main testsuite: Unit tests ................ SUCCESS [  2.260 s]
[INFO] RESTEasy Main testsuite: Integration tests ......... SUCCESS [ 15.243 s]
[INFO] RESTEasy Main testsuite: Embedded Server tests ..... SUCCESS [  0.559 s]
[INFO] RESTEasy Maven Import (BOM) ........................ SUCCESS [  0.005 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:03 min
[INFO] Finished at: 2022-02-28T17:37:08+08:00
[INFO] ------------------------------------------------------------------------

Build Tck Tests By Skipping Tests Firstly

$ mvn clean verify -DskipTests -Djakarta.rest.tck
...
[INFO] RESTEasy Main testsuite: Embedded Server tests ..... SUCCESS [  0.708 s]
[INFO] jakarta-rest-tck ................................... SUCCESS [ 20.781 s]
[INFO] RESTEasy Maven Import (BOM) ........................ SUCCESS [  0.002 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:56 min
[INFO] Finished at: 2022-02-28T17:39:35+08:00
[INFO] ------------------------------------------------------------------------
weli@ovpn-12-126:~/w/resteasy|add-tck✓
@liweinan
Copy link
Author

liweinan commented Feb 28, 2022

Run Tests

cd testsuite/jakarta-rest-tck/
➤ mvn verify

@liweinan
Copy link
Author

Build error:

image

@jamezp
Copy link

jamezp commented Feb 28, 2022

Ah, sorry I just merged this PR and then saw this error. It's fixable though and I'll get a PR up for it.

@liweinan
Copy link
Author

liweinan commented Mar 1, 2022

@jamezp Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment