This user guide will help you get rolling quickly with ScalaTest. First a brief orientation:
Suite, which represents a suite of tests.Suite declares run and other “lifecycle” methods that define a default way to write and run tests.Suite and override lifecycle methods to support different testing styles.Suite style and mixin traits.Suite instances.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.