Skip to content

Bump JUnit to JUnit 6+ - #279

Merged
alexanderjordanbaker merged 1 commit into
apple:mainfrom
alexanderjordanbaker:JUnit6Bump
Aug 28, 2026
Merged

Bump JUnit to JUnit 6+#279
alexanderjordanbaker merged 1 commit into
apple:mainfrom
alexanderjordanbaker:JUnit6Bump

Conversation

@alexanderjordanbaker

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread build.gradle
Comment on lines +32 to +35
tasks.named('compileTestJava') {
sourceCompatibility = '17'
targetCompatibility = '17'
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hello, I have one question. Since JUnit 6 requires Java 17 at runtime, is configuring sourceCompatibility and targetCompatibility only for compileTestJava sufficient here? This ensures the test code is compiled for Java 17, but as I far as I know , it doesn't necessarily ensure that the tests are actually executed using Java 17. Should we configure the Java toolchain or test JVM to use Java 17 as well?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Java toolchain test VM is run on 17, 21, and 25 today, configured in the GitHub CI configuration

@alexanderjordanbaker
alexanderjordanbaker merged commit 7640964 into apple:main Aug 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants