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

bump sbt-jupiter-interface to 0.13.3 #4048

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

jodersky
Copy link
Member

Retrying this after fixes were merged upstream

Supersedes #3988

@lihaoyi
Copy link
Member

lihaoyi commented Nov 29, 2024

Seems the latest changes fixed the issue on the java side, but there remains some issues on the Kotlin Kotest/junit integration causing test class and test case names not to be reported

@lihaoyi
Copy link
Member

lihaoyi commented Dec 2, 2024

sbt/sbt-jupiter-interface#128 should fix the kotlin side

eed3si9n pushed a commit to sbt/sbt-jupiter-interface that referenced this pull request Dec 2, 2024
Necessary to get sbt-jupiter-interface working with Kotlin's Kotest com-lihaoyi/mill#4048

Rather than skipping the entire unknown segment types, we filter out `"suite"` segments explicitly (which appears to be what we actually need to do, e.g. in https://github.com/sbt/sbt-jupiter-interface/blob/43918484453f25ae8e852fae48d54d84be77e0fe/src/library/src/main/java/com/github/sbt/junit/jupiter/internal/event/TaskName.java#L123) and leave unknown segment types as space-separated. We perform a final `.trim` on the generated string to ensure any leading spaces are removed, since when generating the strings for each segment we do not know whether it will be the leading segment or not

This appears to have been broken in https://github.com/sbt/sbt-jupiter-interface/pull/126/files, where returning `null` caused the entire test identifier to not render

It's not entirely clear to me why we filter out the `suite`  segments to begin with, but given that we do this seems like the better way to do it
@lihaoyi lihaoyi changed the title bump sbt-jupiter-interface to 0.13.2 bump sbt-jupiter-interface to 0.13.3 Dec 3, 2024
@lihaoyi lihaoyi merged commit d32c977 into com-lihaoyi:main Dec 3, 2024
27 checks passed
@lefou lefou added this to the 0.12.4 milestone Dec 3, 2024
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