ScalaTest User Guide Getting started Selecting testing styles Defining base classes Writing your first test Using assertions Tagging your tests Running your tests Sharing fixtures Sharing tests Using matchers Testing with mock objects Property-based testing Asynchronous testing Using Scala-js Using Inside Using OptionValues Using EitherValues Using PartialFunctionValues Using PrivateMethodTester Using WrapWith Philosophy and design Migrating to 3.0 |
This user guide will help you get rolling quickly with ScalaTest. First a brief orientation:
To include ScalaTest in your sbt project, simply add this line: libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % "test" To include ScalaTest in your Maven project, use: <dependency> <groupId>org.scalatest</groupId> <artifactId>scalatest_3</artifactId> <version>3.2.19</version> <scope>test</scope> </dependency> For other ways to include ScalaTest in your project, see Running your tests. Using ScalaTest on your project is as easy as 1, 2, 3: |
ScalaTest is brought to you by Bill Venners and Artima.
ScalaTest is free, open-source software
released under the Apache
2.0 license.
If your company loves ScalaTest, please consider sponsoring the project.
Copyright © 2009-2025 Artima, Inc. All Rights Reserved.