-
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
make it possible to use testkit with ScalaTest 3.2.x #1176
Conversation
* Deprecate existing *RuleSuite as they cause runtime failure when used in a classpath where ScalaTest 3.0.x gets evicted by 3.2.x * testkit clients must now mix-in themselves an implementation of TestRegistration (as this trait moved between 3.0.x & 3.2.x) like [Any]FunSuiteLike * Run https://github.com/scalatest/autofix/tree/master/3.1.x on unit
@@ -52,6 +52,8 @@ object Mima { | |||
ProblemFilters.exclude[DirectMissingMethodProblem]("scalafix.testkit.SemanticRuleSuite.LintAssertion"), | |||
ProblemFilters.exclude[MissingClassProblem]("scalafix.testkit.package$"), | |||
ProblemFilters.exclude[MissingClassProblem]("scalafix.testkit.package"), | |||
ProblemFilters.exclude[MissingTypesProblem]("scalafix.testkit.DiffAssertions"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[error] * the type hierarchy of interface scalafix.testkit.DiffAssertions is different in current version. Missing types {org.scalatest.TestSuite,org.scalatest.Alerting,org.scalatest.Informing,org.scalatest.TestRegistration,org.scalatest.Notifying,org.scalatest.FunSuiteLike,org.scalatest.Documenting}
@@ -52,6 +52,8 @@ object Mima { | |||
ProblemFilters.exclude[DirectMissingMethodProblem]("scalafix.testkit.SemanticRuleSuite.LintAssertion"), | |||
ProblemFilters.exclude[MissingClassProblem]("scalafix.testkit.package$"), | |||
ProblemFilters.exclude[MissingClassProblem]("scalafix.testkit.package"), | |||
ProblemFilters.exclude[MissingTypesProblem]("scalafix.testkit.DiffAssertions"), | |||
ProblemFilters.exclude[MissingTypesProblem]("scalafix.testkit.SemanticRuleSuite"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[error] * the type hierarchy of class scalafix.testkit.SemanticRuleSuite is different in current version. Missing types {org.scalatest.FunSuite}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am surprised not to see SyntacticRuleSuite
show up...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix #1172.
I ran MiMa locally against 0.9.17 and
will open a separate PR to re-introduce it#1177.*RuleSuite
as they cause runtime failure when used in a classpath where ScalaTest 3.0.x gets evicted by 3.2.xTestRegistration
(as this trait moved between 3.0.x & 3.2.x) like[Any]FunSuiteLike
unit