Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

ScalaTest

scalatest.org

  • Free plan
  • Windows
  • macOS
  • Linux
  • Web
  • Self-hosted
7.9 Club score Visit scalatest.org

What ScalaTest is

ScalaTest is a free testing tool for Scala, Scala.js, Scala Native, Dotty (Scala 3) and Java code. Development began in 2007, and the tool provides several testing styles so teams can choose an approach that fits their experience and culture. Its core components can be extended and combined for projects with different requirements. Assertion helpers include `assert`, `assertResult`, `intercept`, compile checks, cancellation and clues that add context to failures. Matchers cover equality, exceptions, strings and regular expressions, ranges, properties, and Scala and Java collections. ScalaTest supports parameterized cases, parallel execution and property-based checks, but has no built-in mocks. Listed integrations include JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans and IntelliJ. ScalaTest Plus adds integration libraries for Play, Selenium, ScalaCheck, JUnit 4 and 5, TestNG, EasyMock, JMock and Mockito. Dependency instructions are provided for sbt and Maven, and release artifacts are available through Sonatype OSS and Maven Central. It is released under Apache 2.0. The recommended SuperSafe Community Edition compiler plugin supports Scala 2.x, not Scala 3.x.

Who it suits

ScalaTest suits developers and teams writing tests for Scala-family languages or Java who want several testing styles and extensible components. Its documented help channels include a mailing list and forum, with GitHub for issue reports.

Good to know, and what to watch

  • Free and open source under Apache 2.0.
  • Supports Scala, Scala.js, Scala Native, Scala 3 and Java.
  • Supports parameterized cases and parallel execution.
  • Offers matchers for collections, exceptions and properties.
  • Built-in mocks are not included.
  • SuperSafe Community Edition does not support Scala 3.x.

ScalaTest

Free

Free plan

Getting started

  1. Open the ScalaTest website
  2. Add the dependency using the sbt or Maven instructions
  3. Use release artifacts from Sonatype OSS or Maven Central
  4. Choose a supported testing style
  5. Write tests with ScalaTest assertions and matchers

Limits to check

ScalaTest itself is free and open source. The recommended SuperSafe Community Edition compiler plugin supports Scala 2.x but does not support Scala 3.x.

The Club's review

ScalaTest is a free, open-source testing framework for Scala projects that also reaches Scala.js, Scala Native, Scala 3 and Java. It is best suited to teams that want several testing styles and a broad set of integrations rather than a single prescribed workflow. Its strongest case is flexible, cross-target testing; teams depending on the recommended SuperSafe Community Edition plugin should look elsewhere for Scala 3 support.

Overview

ScalaTest has been developed since 2007 and is released under the Apache 2.0 license. Its language coverage makes it practical for organisations maintaining more than one Scala runtime or mixing Scala and Java code. Support for Scala.js and Scala Native extends the same testing choice beyond the JVM.

The framework offers multiple testing styles, allowing teams to match existing experience and engineering culture. Its core components can be extended and composed for specialised requirements and projects of different sizes. That adaptability is useful in heterogeneous codebases, but teams should agree on conventions early so a shared test suite does not become stylistically fragmented.

Key features

Assertion helpers include ordinary assertions, expected-result checks, exception interception, compile-time checks, cancellation checks and clues that add context to failure messages. Matchers provide a more expressive vocabulary for equality, exceptions, strings and regular expressions, ranges, properties, and Scala and Java collections. This breadth lets a team choose concise checks for simple cases and more descriptive diagnostics for complex ones.

ScalaTest supports parameterized cases, parallel execution and property-based checks. Those capabilities help with data-driven coverage, faster suites and tests that explore generated inputs. Built-in mocks are not provided, so teams needing mocking must use one of the supported external libraries.

Integrations listed by the project cover JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans and IntelliJ. ScalaTest Plus adds integration libraries for Play, Selenium, ScalaCheck, JUnit 4 and 5, TestNG, EasyMock, JMock and Mockito. Dependency guidance is supplied for sbt and Maven, with release artifacts published through Sonatype OSS and mirrored on Maven Central.

The install page identifies ScalaTest and Scalactic 3.2.20 as the latest release for Scala 2.10.0+, 2.11.0+, 2.12.0+, 2.13.0+ and 3.1.0+. The recommended SuperSafe Community Edition compiler plugin supports Scala 2.x but not Scala 3.x, an important constraint for teams that want that plugin in a Scala 3 build.

Pricing

PlanPriceWhat it includes
ScalaTestFreeFree, open-source software under the Apache 2.0 license

There are no paid tiers, seat charges or trial terms. The free plan is therefore suitable for individual developers, commercial teams and organisations that can operate an open-source testing dependency. The trade-off is not a reduced feature tier but the need to manage compatibility and any external integrations your project selects.

Platforms

ScalaTest supports Linux, macOS, Windows, web environments and self-hosted deployments. Its supported languages and runtimes are Scala, Scala.js (JavaScript), Scala Native, Dotty (Scala 3) and Java. Build instructions for sbt and Maven make it a natural fit for common Scala build pipelines.

Who it's for

Choose ScalaTest when your team needs one framework across multiple Scala targets, Java code or established Scala build tooling. It is particularly suitable for organisations that value a choice of testing styles, property-based checks, parameterized cases and extensive matcher libraries.

It is less suitable when a project requires built-in mocking or when the SuperSafe Community Edition plugin is central to a Scala 3 toolchain. Help is provided through the scalatest-users mailing list, ScalaTest Forum and GitHub issue reporting, which suits teams comfortable with community-based support.

Pros and cons

Pros

  • Broad target coverage: Scala, Scala.js, Scala Native, Scala 3 and Java can share one testing framework.
  • Choice of styles: Teams can adopt a format that matches their experience instead of rewriting practices around one style.
  • Rich checking vocabulary: Assertions, matchers, property checks and failure clues support both straightforward and detailed tests.
  • Open-source pricing: The Apache 2.0 license and free plan remove seat and subscription costs.
  • Extensive integrations: Connectors for build tools, IDEs, test libraries and browser tooling reduce migration friction.

Cons

  • No built-in mocks: Mocking requires an external library such as Mockito, ScalaMock, JMock or EasyMock.
  • SuperSafe Scala 3 limitation: The recommended Community Edition compiler plugin supports Scala 2.x only.
  • Style choice requires governance: Multiple approaches are flexible, but teams must establish conventions for consistent suites.

Alternatives

Unit Testing Frameworks is a useful starting point for comparing testing tools by category.

  • QUnit is a free, open-source JavaScript framework distributed through CDN, npm and Yarn; choose it for JavaScript-focused projects.
  • Pest is a free PestPHP framework requiring PHP 8.4 or newer for Pest 5; choose it for modern PHP applications.
  • Rust libtest is the free test harness built into Rust's standard library; choose it for native Rust projects.
  • Vitest is free and open source for Linux, macOS, web and Windows; choose it for a JavaScript or web test suite.
  • CppUTest is a free C/C++ unit-testing and mocking framework; choose it when native C or C++ mocking is required.
  • Kotest is a free Kotlin framework whose testing, assertions and property-testing projects can be used independently; choose it for Kotlin code.
  • Hypothesis provides free and paid student-based plans; choose it when that model and its supported environments fit your testing needs.
  • NUnit is a free .NET framework released under the MIT license; choose it for .NET applications.

Verdict

ScalaTest is a strong choice for Scala teams that need broad runtime coverage, configurable testing styles and mature assertion, matcher and integration options without licensing costs. Look elsewhere if built-in mocking is essential or if your Scala 3 workflow depends on the SuperSafe Community Edition plugin.

The verdict

ScalaTest offers broad language coverage, multiple testing styles and a range of assertion and matcher helpers. Teams using Scala 3 should note that the recommended SuperSafe Community Edition plugin does not support it.

Questions people ask

How much does ScalaTest cost?

ScalaTest is free, with a free free plan.

Which languages does ScalaTest support?

It supports Scala, Scala.js, Scala Native, Dotty (Scala 3), and Java.

Does ScalaTest include mocks?

No. Built-in mocks are not provided, although integrations and ScalaTest Plus libraries include several mocking tools.

Which tools integrate with ScalaTest?

Listed integrations include JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans, and IntelliJ.

How can I install ScalaTest?

The site provides dependency instructions for sbt and Maven. Release artifacts are available through Sonatype OSS and mirrored on Maven Central.

Where can users get support?

The project directs users to the scalatest-users mailing list and ScalaTest Forum, with GitHub available for issue reporting.

What the maker publishes

Assertions
The documented assertion helpers include assert, assertResult, intercept, compile checks, cancellation, and clues for failure messages. source
Compatibility limit
The install page says the recommended SuperSafe Community Edition compiler plugin supports Scala 2.x and does not support Scala 3.x. source
Current release
The install page identifies ScalaTest and Scalactic 3.2.20 as the latest release for Scala 2.10.0+, 2.11.0+, 2.12.0+, 2.13.0+, and 3.1.0+. source
Extensible
Its core components can be extended and composed to address special requirements and projects of different sizes. source
Founded
2007 source
History
The About page says ScalaTest development began in late 2007 and names Bill Venners, George Berger, Chua Chee Seng, and other contributors. source
Install
The site provides dependency instructions for sbt and Maven and says release artifacts are available through Sonatype OSS and mirrored on Maven Central. source
Integrations
The site lists integrations with JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans, and IntelliJ. source
Matchers
The documented matchers cover equality, exceptions, strings and regular expressions, ranges, properties, and Scala and Java collections. source
Purpose
ScalaTest is a testing tool for Scala, Scala.js, Scala Native, Dotty (Scala 3), and Java code. source
ScalaTest Plus
ScalaTest Plus provides integration libraries for Play, Selenium, ScalaCheck, JUnit 4 and 5, TestNG, EasyMock, JMock, and Mockito. source
Security and compliance
ScalaTest is released under the Apache 2.0 license; the maker pages opened did not state security certifications or compliance standards. source
Support
The About page directs users to the scalatest-users mailing list and ScalaTest Forum for help, and GitHub for issue reporting. source
Testing styles
It offers several testing styles so teams can choose one that fits their experience and culture. source

Checked against the maker's pages on 7 Oct 2026.