Skip to content

Upgrading org.scalatest:scalatest_2.11 2 to 3

Breaking2.3.0-SNAP2 → 3.3.0-SNAP4Breaking2Deprecated10New14Changed94Fixed54Other11

BreakingUpgrade verdict

2 breaking changes.

  • Two helper classes got new names in the Scala 3 version of the library, so code that refers to the old names must be updated.
  • Calling futureValue now needs empty parentheses by mistake; a fix is coming in 3.2.5.
  • The old DiagrammedExpr location still works but is deprecated and will be removed in a future version.
  • Deprecates org.scalatest.enablers.CheckerAsserting in favour of org.scalatestplus.scalacheck.CheckerAsserting.
Top 5 of 12 that need code or config changes

Adds org.scalatest:scalatest-core_2.11 3.3.0-SNAP4, org.scalatest:scalatest-diagrams_2.11 3.3.0-SNAP4, org.scalatest:scalatest-featurespec_2.11 3.3.0-SNAP4, org.scalatest:scalatest-flatspec_2.11 3.3.0-SNAP4, org.scalatest:scalatest-freespec_2.11 3.3.0-SNAP4, org.scalatest:scalatest-funspec_2.11 3.3.0-SNAP4, org.scalatest:scalatest-funsuite_2.11 3.3.0-SNAP4, org.scalatest:scalatest-matchers-core_2.11 3.3.0-SNAP4, org.scalatest:scalatest-mustmatchers_2.11 3.3.0-SNAP4, org.scalatest:scalatest-propspec_2.11 3.3.0-SNAP4, org.scalatest:scalatest-refspec_2.11 3.3.0-SNAP4, org.scalatest:scalatest-shouldmatchers_2.11 3.3.0-SNAP4, org.scalatest:scalatest-wordspec_2.11 3.3.0-SNAP4.

Drops org.scala-lang.modules:scala-xml_2.11, org.scalactic:scalactic_2.11.

Installs 20 packages in all (was 6).

Breaking2
Renames Valuable to EitherValuable in EitherValues and to OptionValuable in OptionValues for the Scala 3 build.
ValuableEitherValuesEitherValuableOptionValuesOptionValuable
Futures's futureValue function mistakenly requires () as a source breaking change, to be fixed in 3.2.5.
Futures.futureValue
Deprecated10
Deprecates DiagrammedExpr in the org.scalatest package in favor of org.scalatest.diagrams.
DiagrammedExprorg.scalatestorg.scalatest.diagrams
Deprecates org.scalatest.enablers.CheckerAsserting in favour of org.scalatestplus.scalacheck.CheckerAsserting.
org.scalatest.enablers.CheckerAssertingorg.scalatestplus.scalacheck.CheckerAsserting
Deprecates 'to' and 'until' methods in Float and Double anyvals.
tountilFloatDouble
Deprecates ScalaCheck related classes in org.scalatest.prop, moved into org.scalatestplus.scalacheck.
org.scalatest.proporg.scalatestplus.scalacheck
Deprecates classes in org.scalatest.easymock, moved into org.scalatestplus.easymock.
org.scalatest.easymockorg.scalatestplus.easymock
Deprecates classes in org.scalatest.jmock, moved into org.scalatestplus.jmock.
org.scalatest.jmockorg.scalatestplus.jmock
Deprecates classes in org.scalatest.junit, moved into org.scalatestplus.junit.
org.scalatest.junitorg.scalatestplus.junit
Deprecates classes in org.scalatest.mockito, moved into org.scalatestplus.mockito.
org.scalatest.mockitoorg.scalatestplus.mockito
Deprecates classes in org.scalatest.selenium, moved into org.scalatestplus.selenium.
org.scalatest.seleniumorg.scalatestplus.selenium
Deprecates classes in org.scalatest.testng, moved into org.scalatestplus.testng.
org.scalatest.testngorg.scalatestplus.testng