Skip to content

Upgrade tests to JUnit 6 - #652

Open
qwwdfsad wants to merge 2 commits into
mainfrom
junit-6
Open

Upgrade tests to JUnit 6#652
qwwdfsad wants to merge 2 commits into
mainfrom
junit-6

Conversation

@qwwdfsad

Copy link
Copy Markdown
Member

A few notes:

  • kotlin-test is removed as obsolete
  • JUnit4 in a lambda module is kept, I'll remove the whole module later, no need to touch it
  • @AbdullinAM for your experiments with CI -- the min JDK baseline is now 17 due to JUnit 6 requirement

This is a basis for the next PR with tests revamp (and it's more pleasant to do it with JUnit 6 + it's always nice to renovate things) and a nice testing ground for stacked PRs

qwwdfsad added 2 commits July 31, 2026 15:43
Also, get rid of kotlin-test in core, it's now redundant
Comment thread core/build.gradle.kts
testImplementation(libs.junit)
testImplementation(platform(libs.junit.bom))
testImplementation(libs.googleTruth) {
exclude(group = "junit", module = "junit")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread gradle/libs.versions.toml
gson = { module = "com.google.code.gson:gson", version.ref = "com-google-code-gson-gson" }
guava = { module = "com.google.guava:guava", version.ref = "com-google-guava-guava" }
junit = { module = "junit:junit", version.ref = "junit-junit" }
junit-bom = { module = "org.junit:junit-bom", version.ref = "org-junit-junit-bom" }

@qwwdfsad qwwdfsad Jul 31, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If you are puzzled by the convention between dashes and camel case, it makes two of us now: https://docs.gradle.org/current/userguide/best_practices_dependencies.html#name_version_catalog_entries

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.

2 participants