-
Notifications
You must be signed in to change notification settings - Fork 185
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
scalafix-testkit users cannot use scalatest >= 3.2.0 #1172
Comments
Maybe we could publish several scalafix-testkit versions, one for each breaking change of scalatest? |
Is there a stable ScalaTest API that we could use that's consistent between 3.0 and 3.1? Scalafix testkit doesn't need much from ScalaTest, just the ability to submit a test with a name and body. I have considered replacing the ScalaTest dependency in favor of MUnit/JUnit for Scalafix 1.x. The binary breaking changes in ScalaTest 3.1.x make it hard to support a library API such as scalafix-testkit. At Twitter, we have many custom Scalafix rules that are tested with scalafix-testkit and we're still on ScalaTest 3.0.x and I don't know when we will invest in doing the 3.1.x upgrade. It might happen soon, it might happen next year. Cross-building testkit against two ScalaTest versions is the path of resistance. We could publish the 3.2.x artifacts with an additional |
Good point, I'll have a look.
Out of curiosity, why isnt' https://github.com/scalatest/autofix/tree/master/3.1.x enough for a smooth migration? Other libraries built against scalatest like scalafix maybe?
That's what I had in mind, but I agree that should be the last resort. |
See #1083
Experienced in scalacenter/sbt-scalafix#131: scalatest 3.1.x users could still use scalafix-testkit as long as they didn't treat deprecations as warnings, but scalatest 3.2.x cannot as deprecated classes have been removed.
The text was updated successfully, but these errors were encountered: