Skip to content

Bump munit to 1.3.1 (was 1.2.2) & support generating a native test entrypoint for it#4297

Closed
Gedochao wants to merge 1 commit into
VirtusLab:mainfrom
Gedochao:update/munit-1.3.1
Closed

Bump munit to 1.3.1 (was 1.2.2) & support generating a native test entrypoint for it#4297
Gedochao wants to merge 1 commit into
VirtusLab:mainfrom
Gedochao:update/munit-1.3.1

Conversation

@Gedochao
Copy link
Copy Markdown
Contributor

@Gedochao Gedochao commented Jun 2, 2026

https://github.com/scalameta/munit/releases/tag/v1.3.1
This is includes a bit of an ugly hack to work around scalameta/munit#1093 and support running Scala Native tests with MUnit v1.3.1+
As @EnableReflectiveInstantiation is missing, an entrypoint for the tests needs to be generated on the Scala CLI side.

Checklist

  • tested the solution locally and it works
  • ran the code formatter (scala-cli fmt .)
  • ran scalafix (./mill -i __.fix)
  • ran reference docs auto-generation (./mill -i 'generate-reference-doc[]'.run)

How much have your relied on LLM-based tools in this contribution?

extensively, Cursor + Claude

How was the solution tested?

existing tests + added an anti regression one for MUnit v1.3.0 (the last one without scalameta/munit#1093)

Additional notes

Alternatives include:

  • injecting @EnableReflectiveInstantiation on Scala CLI side (even uglier)
  • an upstream fix in MUnit

@Gedochao
Copy link
Copy Markdown
Contributor Author

Gedochao commented Jun 2, 2026

We'll go with scalameta/munit#1094 instead, and skip bumping to MUnit 1.3.1

@Gedochao Gedochao closed this Jun 2, 2026
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.

1 participant