The future of ScalaTest

Using ScalaTest with Scala 3.8.1 and Java 25 LTS triggers a deprecation warning regarding the use of sun.misc.Unsafe. The current workaround is to pass the --sun-misc-unsafe-memory-access=allow to the JVM. However, this won’t last forever (see JEP 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal).

The project doesn’t seem very active (the last release was a year and a half ago) and I don’t want to be caught off guard if ScalaTest suddenly becomes unusable. I rely heavily on it for testing and grading in several courses I teach.

Anyone knows what the plan is? Is ScalaTest dying? What’s the replacement? MUnit?

2 Likes