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

Scala Hedgehog

hedgehogqa.github.io

  • Free plan
  • Linux

What Scala Hedgehog is

Scala Hedgehog is a property-based testing system for Scala developers. It generates values for checking properties, then uses integrated shrinking to simplify failing cases while preserving the invariants built into those values. Range combinators let developers set the scope of generated numbers and collections. For stateful software such as web services and database layers, abstract state machine testing can model system behavior. The project provides an SBT test runner and integration modules for Minitest and MUnit; its documentation also describes Gradle support through a Scala plugin. Documented Scala versions are 2.12, 2.13, and 3.3+. The core module has no external dependencies, and binary dependencies for its modules are published through Maven Central. Scala Hedgehog is free, with no paid plans listed. Its project describes the release as early and warns that the API may change before wider adoption. IntelliJ’s Scala plugin does not include Hedgehog among its built-in test frameworks, though Properties tests can be run as applications. The getting-started documentation assumes SBT, with SBT 1.9.1 and later supporting the testing extension by default.

Who it suits

Scala Hedgehog suits Scala developers who want property-based tests, including tests of stateful systems. It may be a fit for teams using SBT, Minitest, or MUnit.

Good to know, and what to watch

  • Shrinking simplifies failures while preserving invariants
  • Supports abstract state machine testing
  • Integrations available for Minitest and MUnit
  • Free, with no paid plans listed
  • Project describes its release as early
  • API may change before wider adoption
  • IntelliJ Scala plugin lacks built-in framework support

Scala Hedgehog

Free

Free plan

The verdict

Scala Hedgehog offers property-based and stateful testing with integrated shrinking and several test integrations. Its early release status and IntelliJ limitation are worth considering before adoption.

What the maker publishes

Automatic shrinking
Integrated shrinking simplifies failing test cases while preserving the invariants of generated values. source
Availability
The project documents binary dependencies published through Maven Central, including core, runner, SBT, Minitest, and MUnit modules. source
Build tools
The getting-started documentation assumes SBT and says Hedgehog is also supported for Gradle through a Scala plugin. source
Core dependencies
The core module currently has no external dependencies. source
Generator control
Range combinators control the scope of generated numbers and collections. source
IDE limitation
The docs say the IntelliJ Scala plugin does not include Hedgehog among its hard-coded supported test frameworks; tests can be run as applications by extending Properties, with the test defined as an object. source
Integrated shrinking
Its integrated shrinkers compose with generators, so shrunk values preserve their invariants by construction. source
IntelliJ limitation
The docs say IntelliJ's Scala plugin does not list Hedgehog among its hard-coded supported test frameworks, and explain how to run Properties tests as an application instead. source
Intended users
The project is for Scala developers who want property-based tests, including tests of stateful systems. source
Minitest integration
Scala Hedgehog lists Minitest as an available integration module. source
MUnit integration
The hedgehog-munit module supports property-based and example-based Hedgehog tests in an MUnit test suite. source
Purpose
Scala Hedgehog is a property-based testing system for Scala, in the spirit of QuickCheck and ScalaCheck. source
Range controls
Range combinators control the scope of generated numbers and collections. source
Release status
The project describes itself as in an early release and says its API may break until wider adoption. source
SBT runner
Hedgehog provides an sbt testing extension; sbt 1.9.1 and higher support it by default, while versions 1.9.0 and lower require a testFrameworks setting. source
Scala compatibility
The documentation lists support for Scala 2.12, 2.13, and 3.3+. source
Scala versions
The documented supported Scala versions are 2.12, 2.13, and 3.3+. source
Stateful testing
It supports abstract state machine testing for stateful systems such as web services and database layers. source
State testing
It supports abstract state machine testing for stateful systems. source
Test integrations
Integration modules are available for Minitest and MUnit. source
Test runner
The project includes an SBT test runner and supports SBT's testing extension. source

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