Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace TestNG with Junit5 #279

Merged
merged 8 commits into from Jun 27, 2023
Merged

Conversation

KyleAure
Copy link
Contributor

@KyleAure KyleAure commented Jun 1, 2023

Fixes #277

  • Perform verification testing
  • Update TCK-DIST documentation

Necessary refactor to ensure we meet the TCK guidelines here: https://github.com/jakartaee/platform-tck/wiki/Standard-Rules-while-separating-standalone-TCKs-from-platform-TCK

@KyleAure KyleAure added enhancement New feature or request TCK EE11 Suggested changes for Jakarta EE 11 labels Jun 1, 2023
@KyleAure KyleAure self-assigned this Jun 1, 2023
@KyleAure KyleAure marked this pull request as ready for review June 19, 2023 17:26
@KyleAure
Copy link
Contributor Author

Ran verification testing on Open Liberty and have all tests running and passing:
Screenshot 2023-06-19 at 12 27 00 PM

Copy link
Contributor

@njr-11 njr-11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea splitting up the commits. It was much easier to review that way. I only found a couple of very minor things, which you can decide whether or not to update.

// Ensure user is running on JDK 11 or higher, different JDKs produce different
// signatures
int javaSpecVersion = Integer.parseInt(System.getProperty("java.specification.version"));
assertTrue(javaSpecVersion >= 11, "The signature tests must be run on a JVM using Java 11 or higher.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 17 now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but the signature file currently in GitHub (unchanged in this PR) was generated using Java 11 so this is still accurate. I will update the signature file, and this test after this refactoring.
This work is currently being tracked under issue #282

@KyleAure KyleAure removed TCK EE11 Suggested changes for Jakarta EE 11 labels Jun 20, 2023
@KyleAure KyleAure merged commit 6dfd989 into jakartaee:main Jun 27, 2023
2 checks passed
@KyleAure KyleAure deleted the 277-switch-to-junit5 branch June 27, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor TCK to use JUnit 5
3 participants