Skip to content
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

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented Jun 23, 2020

Fix #1172.

I ran MiMa locally against 0.9.17 and will open a separate PR to re-introduce it #1177.

  • 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

* 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"),
Copy link
Collaborator Author

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"),
Copy link
Collaborator Author

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}

Copy link
Collaborator Author

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...

@bjaglin bjaglin marked this pull request as ready for review June 23, 2020 16:46
@bjaglin bjaglin requested review from olafurpg and mlachkar June 23, 2020 16:46
@bjaglin bjaglin changed the title make it possible to use testkit with ScalaTest 3.0.x, 3.1.x & 3.2.x make it possible to use testkit with ScalaTest 3.2.x Jun 24, 2020
Copy link
Collaborator

@mlachkar mlachkar left a comment

Choose a reason for hiding this comment

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

LGTM

@bjaglin bjaglin merged commit 62dc440 into scalacenter:master Jun 30, 2020
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.

scalafix-testkit users cannot use scalatest >= 3.2.0
3 participants