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

ScalaCheck

scalacheck.org

  • Free plan
  • Windows
  • macOS
  • Linux
7.9 Club score Visit scalacheck.org

What ScalaCheck is

ScalaCheck is a free Scala library for automated property-based testing of Scala and Java programs. Developers define properties, and ScalaCheck checks them against randomized input parameters; when a property fails, it reports the arguments that falsified it. It supports parameterized cases and parallel execution, and can run standalone with its built-in test runner. For sbt projects, the site provides a test-dependency declaration, and ScalaCheck is integrated with ScalaTest, specs2, and LambdaTest. It has no external dependencies beyond the Scala runtime. Build artifacts are published in the Central Repository, and the project site links to a user guide and API documentation. The listed release is ScalaCheck 1.19.0, released September 6, 2025. The project identifies its license as BSD-3-Clause and lists a security policy. Its README says the Gradle plugin supports ScalaCheck for Scala.js and Scala Native; the site names the Scala compiler and Akka among projects that use it.

Who it suits

ScalaCheck suits developers writing Scala or Java programs who want automated checks over randomized inputs. It is particularly relevant to projects using sbt or the listed Scala testing integrations.

Good to know, and what to watch

  • Reports arguments that falsify a property.
  • Supports parameterized cases and parallel execution.
  • Runs standalone with a built-in test runner.
  • Has no external dependencies beyond Scala runtime.
  • Integrates with ScalaTest, specs2, and LambdaTest.
  • The library is for Scala and Java programs.
  • It depends on the Scala runtime.
  • The listed release is from September 6, 2025.

ScalaCheck

Free

Free plan

Getting started

  1. Open the ScalaCheck website and documentation
  2. Add org.scalacheck %% scalacheck % 1.19.0 % test to an sbt project
  3. Use ScalaCheck with ScalaTest, specs2, or LambdaTest if applicable
  4. Run checks through the built-in test runner or your integrated test framework

Limits to check

The listed plan is free. ScalaCheck requires the Scala runtime and is intended for Scala and Java programs.

The Club's review

ScalaCheck is an open-source property-based testing library for Scala and Java programs. It is best suited to teams already using Scala with sbt or one of its supported test frameworks. Its focused, zero-cost approach is compelling for broad input coverage, but projects outside the Scala ecosystem should look elsewhere.

Overview

ScalaCheck evaluates stated properties against randomized input parameters instead of limiting coverage to hand-written examples. When a property fails, it reports the arguments that falsified it, giving developers a reproducible starting point for debugging. This is particularly useful for rules that should hold across many values, where a small collection of examples can leave edge cases undiscovered.

The library does not replace the work of deciding what a program should do: teams still need to express meaningful properties. Its only external dependency is the Scala runtime, keeping installation and dependency management relatively narrow while making Scala a practical requirement.

Key features

Randomized property checks

Property-based checks and parameterized cases let a team exercise behavior across generated arguments. Reported counterexamples make failures more actionable than a simple pass-or-fail result. Parallel execution is also supported, which can help suites that need to run checks concurrently.

Build and framework integration

ScalaCheck works with sbt, with the recommended test dependency declaration org.scalacheck %% scalacheck % 1.19.0 % test. It integrates with ScalaTest, specs2, and LambdaTest, so teams using those frameworks can add property checks without abandoning their existing test structure. A built-in runner also supports standalone use when a framework integration is unnecessary.

Distribution and documentation

Build artifacts are published in the Central Repository, and the download page provides an sbt declaration. A continuously developed user guide and API documentation cover the latest release. The site lists ScalaCheck 1.19.0, released September 6, 2025, giving adopters a clear current version to target.

Pricing

PlanPriceIncludes
ScalaCheckFreeOpen-source library under the BSD-3-Clause license

There is no paid tier, seat charge, quota, or trial period to weigh. The free plan is the complete distribution, making it suitable for individual developers, open-source maintainers, and organizations that want property testing without procurement overhead. Its value depends on having Scala-based code and the expertise to define useful properties; it is not a substitute for a broader commercial testing platform.

Platforms

ScalaCheck runs on Linux, macOS, and Windows. The project build defines JVM, Scala.js, and Scala Native targets, and its README notes support from the Gradle plugin for Scala.js and Scala Native. Scala and Java are the supported languages. This combination covers common server, cross-platform, and native Scala deployments, while Java users should expect to work through ScalaCheck's Scala-oriented ecosystem rather than a Java-first API.

Who it's for

Choose ScalaCheck when a Scala or Java project needs randomized, repeatable checks of general behavioral rules and already uses sbt, ScalaTest, specs2, or LambdaTest. It is also a sensible addition to an existing unit-test suite when counterexamples are more valuable than adding more manually selected cases.

It is a poor fit for teams that cannot adopt the Scala runtime, want a standalone general-purpose testing framework, or primarily develop in another language. In those situations, a property-testing library native to the project's language will reduce integration friction.

Pros and cons

Pros

  • Actionable failures: failing arguments are reported, helping developers investigate the precise input that breaks a property.
  • Broad integration: sbt support plus ScalaTest, specs2, LambdaTest, and standalone execution fit several Scala testing workflows.
  • Low dependency overhead: only the Scala runtime is required.
  • Cross-platform reach: JVM, Scala.js, and Scala Native targets extend beyond a single deployment model.
  • No licensing cost: the complete BSD-3-Clause-licensed library costs nothing.

Cons

  • Scala runtime dependency: projects outside the Scala ecosystem cannot use it as a lightweight language-neutral option.
  • Focused scope: it checks properties rather than providing a complete general-purpose test framework.
  • Property design remains yours: weak or incorrect properties will not produce meaningful coverage, so teams need testing expertise.

Alternatives

JSVerify is the better choice for JavaScript property-based testing, with free self-hosted and web availability. PropCheck suits Ruby teams seeking a free MIT-licensed gem, provided Ruby 2.5.1 or newer is acceptable. QCheck is a free BSD-2-Clause option for OCaml on Linux.

Racket QuickCheck fits Racket projects on Linux, macOS, or Windows and requires Racket 6.0 or newer. FsCheck is a free BSD-licensed library distributed through NuGet packages for its supported environments. Gopter is aimed at Go developers and is available as a free MIT-licensed package or library. QuickCheck is the Linux-oriented Haskell alternative. fast-check is a free MIT-licensed JavaScript/TypeScript option with API, Linux, and web availability.

For broader browsing, compare the Property-Based Testing Tools and Unit Testing Frameworks lists.

Verdict

ScalaCheck is a strong choice for Scala teams that want randomized property checks, useful counterexamples, and integration with an sbt-based test workflow at no cost. Choose it when your project can use the Scala runtime and your team is prepared to define robust properties; look elsewhere for a non-Scala codebase or a complete, language-independent testing framework.

The verdict

ScalaCheck adds randomized property checks to Scala and Java testing workflows, with standalone and framework-integrated options. Its Scala runtime dependency and sbt-oriented setup are worth noting when evaluating it for a project.

Questions people ask

Is ScalaCheck free?

Yes. The listed ScalaCheck plan costs nothing and is an open-source library under the BSD-3-Clause license.

Which platforms does ScalaCheck support?

The project build defines JVM, Scala.js, and Scala Native targets. The listed operating systems are Linux, macOS, and Windows.

How is ScalaCheck installed?

The site recommends adding org.scalacheck %% scalacheck % 1.19.0 % test as an sbt dependency. Artifacts are published in the Central Repository.

Does ScalaCheck integrate with test frameworks?

Yes. It works with sbt and integrates with ScalaTest, specs2, and LambdaTest.

What languages does ScalaCheck support?

ScalaCheck is for testing Scala and Java programs.

Where can users get support?

The documentation links to GitHub bug reports, a mailing list, and ScalaCheck on Stack Overflow.

What the maker publishes

Build integration
The site says ScalaCheck works with sbt and shows adding it as a test dependency. source
Compatibility
The project README says ScalaCheck is supported by the Gradle plugin for Scala.js and Scala Native. source
Dependencies
ScalaCheck has no external dependencies other than the Scala runtime. source
Dependencies
ScalaCheck has no external dependencies other than the Scala runtime. source
Distribution
Build artifacts are published in the Central Repository, and the download page gives an sbt dependency declaration. source
Documentation
The site links to a continuously developed user guide and API documentation for the latest release. source
Documentation
The site links to a continuously developed user guide and API documentation for the latest release. source
Installation
The site recommends adding org.scalacheck %% scalacheck % 1.19.0 % test as an sbt dependency. source
Integrations
The site says ScalaCheck works with sbt and is integrated with ScalaTest, specs2 and LambdaTest. source
Latest listed release
The site lists ScalaCheck 1.19.0, released on September 6, 2025. source
License
The project build identifies its license as BSD-3-Clause. source
Maintainer
The project build lists Rickard Nilsson as a developer. source
Notable usage
The site names the Scala compiler and Akka as projects that use ScalaCheck. source
Purpose
ScalaCheck is a Scala library for automated property-based testing of Scala and Java programs. source
Purpose
ScalaCheck is a Scala library for automated property-based testing of Scala or Java programs. source
Security
The GitHub repository page lists a security policy. source
Security and license
The project repository lists a security policy and identifies its license as BSD-3-Clause. source
Standalone use
ScalaCheck can run standalone with its built-in test runner. source
Standalone use
ScalaCheck can run standalone with its built-in test runner. source
Support
The documentation page links to GitHub bug reports, a mailing list and Stack Overflow. source
Support channels
The documentation page links to bug reports, a mailing list, and ScalaCheck on Stack Overflow. source
Supported targets
The project build defines JVM, Scala.js and Scala Native platforms. source
Test frameworks
ScalaCheck is integrated with ScalaTest, specs2, and LambdaTest. source
Test generation
Its properties are checked over randomized input parameters, and it reports arguments that cause a property to fail. source

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