Skip to content

Use Scala Native test-interface-sbt-defs instead of test-interface#1175

Merged
satorg merged 1 commit into
typelevel:mainfrom
zainab-ali:scala-native-test-interface
Jun 7, 2026
Merged

Use Scala Native test-interface-sbt-defs instead of test-interface#1175
satorg merged 1 commit into
typelevel:mainfrom
zainab-ali:scala-native-test-interface

Conversation

@zainab-ali
Copy link
Copy Markdown
Contributor

@zainab-ali zainab-ali commented May 28, 2026

See scala-native/scala-native#4844

Testing libraries and frameworks should depend on Scala Native's test-interface-sbt-defs, not test-interface.

  • test-interface-sbt-defs defines a common interface for unit tests. It follows early-semver versioning.
  • test-interface is a server implementation that must match the version of the Scala Native plugin. It follows strict versioning.

This was picked up by SBT 1.12.10, which added eviction checks for test dependencies.

How to reproduce

You can reproduce the problem in the weaver-test repo. Set evictionWarningOptions to cover the Test configuration:

ThisBuild / evictionWarningOptions := (ThisBuild / evictionWarningOptions).value
  .withConfigurations(List(Compile, Test))

and run sbt "scalacheckNative / update".

@satorg satorg self-assigned this Jun 3, 2026
Copy link
Copy Markdown
Contributor

@satorg satorg left a comment

Choose a reason for hiding this comment

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

Thank you!

@satorg satorg merged commit be9472a into typelevel:main Jun 7, 2026
18 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.

2 participants