FSharp.Hedgehog vs Scala Hedgehog
FSharp.Hedgehog
github.comScala Hedgehog
hedgehogqa.github.ioSide by side
| Figure | FSharp.Hedgehog | Scala Hedgehog |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | Yes |
| Plans published | 0 | 1 |
| Spec score · Property-Based Testing Tools | 7.5 (#13) | 7.7 (#11) |
| Integrated shrinking | When a property fails, Hedgehog shrinks the failing input to a smaller counterexample while preserving the generated values’ invariants. | Its integrated shrinkers compose with generators, so shrunk values preserve their invariants by construction. |
| Intended users | The project describes the library as property-based testing for .NET developers writing tests in F#, C#, or other .NET languages. | The project is for Scala developers who want property-based tests, including tests of stateful systems. |
| Purpose | Hedgehog is a property-based testing system for .NET that automatically generates inputs to help find edge cases. | Scala Hedgehog is a property-based testing system for Scala, in the spirit of QuickCheck and ScalaCheck. |
Plans
In their own words
FSharp.Hedgehog
FSharp.Hedgehog has no write-up on Specifiction yet; its figures are above.
Scala Hedgehog
Scala Hedgehog is a property-based testing system for Scala that generates values to check properties and can simplify failing cases while preserving the generated values’ invariants. Range combinators let developers set the scope of generated numbers and collections. For stateful software, its abstract state machine testing can model systems such as web services and database layers. The project includes 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 or later. Binary dependencies for its modules are published through Maven Central, and the core module has no external dependencies. Scala Hedgehog is free, with no paid plans listed. The project describes its release as early and says its API may change before wider adoption. IntelliJ’s Scala plugin does not list Hedgehog among its built-in test frameworks, though Properties tests can be run as applications. The getting-started documentation assumes SBT; SBT 1.9.1 and later support the testing extension by default, while earlier versions require a testFrameworks setting.