EVERYTHING XIAOMI
Get listed
Side by side

Hspec vs ScalaCheck

Hspec logo

Hspec

6.2#15 in unit testing frameworksFree plan
Free planLinux
Visit

ScalaCheck

6.6#1 in property-based testing toolsFree plan
Free planLinuxmacOSWindows
Visit

What both publish

FactHspecScalaCheck
DistributionThe Hspec package is available as a Cabal source package from Hackage.Build artifacts are published in the Central Repository, and the download page gives an sbt dependency declaration.
IntegrationsHspec integrates with QuickCheck, SmallCheck, and HUnit.The site says ScalaCheck works with sbt and is integrated with ScalaTest, specs2 and LambdaTest.
LicenseThe GitHub repository identifies the project license as MIT.The project build identifies its license as BSD-3-Clause.
PurposeHspec is a testing framework for Haskell.ScalaCheck is a Scala library for automated property-based testing of Scala or Java programs.

Hspec plans

  • HspecFree

ScalaCheck plans

  • ScalaCheckFree

Pick Hspec if…

It suits Haskell developers who want readable specification-style tests with property testing and compatibility with HUnit. Projects using Cabal, Stack, or GHCi can pass Hspec options through those tools.

Pick ScalaCheck if…

ScalaCheck is suited to developers testing Scala or Java code with randomized property checks. It fits projects using sbt or the listed testing integrations, and can also be run standalone.

Charts they share