0PricingLogin
Scala for Backend Engineering & Functional Programming · Lesson

ScalaTest Styles

FlatSpec and FunSuite.

What is ScalaTest?

ScalaTest is the most widely used testing framework for Scala. A distinctive feature is that it offers multiple testing styles, letting teams choose the syntax that fits their background.

Adding the Dependency

You add ScalaTest as a test dependency in build.sbt. The % Test scope keeps it out of your production artifact.

libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % Test

All lessons in this course

  1. ScalaTest Styles
  2. Matchers
  3. Property-Based Testing
  4. Mocking and Fixtures
← Back to Scala for Backend Engineering & Functional Programming