Skip to content
SPECIFICTION
Get listed

Hspec vs ScalaTest

Hspec

hspec.github.io

ScalaTest

scalatest.org

Side by side

FigureHspecScalaTest
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
LinuxYesYes
Self-hosted—Yes
Plans published11
Spec score · Unit Testing8.0 (#9)7.7 (#14)
Spec score · Unit Testing Frameworks8.1 (#10)7.6 (#24)
IntegrationsHspec integrates with QuickCheck, SmallCheck, and HUnit.The site lists integrations with JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans, and IntelliJ.
PurposeHspec is a testing framework for Haskell.ScalaTest is a testing tool for Scala, Scala.js, Scala Native, Dotty (Scala 3), and Java code.

Plans

Hspec

  • HspecFree

Hspec pricing →

ScalaTest

  • ScalaTestFree

ScalaTest pricing →

In their own words

Hspec

Hspec has no write-up on Specifiction yet; its figures are above.

Visit hspec.github.io

ScalaTest

ScalaTest is a testing tool for Scala, Scala.js, Scala Native, Dotty (Scala 3), and Java code. It offers several testing styles, and its core components can be extended and combined for projects with particular requirements. Documented assertion helpers include assert, assertResult, intercept, compile checks, cancellation, and clues that add context to failure messages. Matchers cover equality, exceptions, strings and regular expressions, ranges, properties, and Scala and Java collections. Parameterized cases, parallel execution, and property-based checks are supported; built-in mocks are not. Integrations listed by the project include JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans, and IntelliJ. ScalaTest Plus provides integration libraries for Play, Selenium, ScalaCheck, JUnit 4 and 5, TestNG, EasyMock, JMock, and Mockito. Installation instructions cover sbt and Maven, with release artifacts available through Sonatype OSS and mirrored on Maven Central. ScalaTest is free and open source under the Apache 2.0 license. The recommended SuperSafe Community Edition compiler plugin supports Scala 2.x, but not Scala 3.x.

Visit scalatest.org