Skip to content
SPECIFICTION
Get listed

Hspec vs MockK

Hspec

hspec.github.io

MockK

mockk.io

Side by side

FigureHspecMockK
Price fromFree—
Free planYes—
Free trial——
Open source——
Windows—Yes
macOS—Yes
LinuxYesYes
Android—Yes
Plans published10
Spec score · Unit Testing Frameworks8.1 (#10)7.3 (#28)
DistributionThe Hspec package is available as a Cabal source package from Hackage.The setup guide lists JVM, Android unit-test and Android instrumented-test dependency artifacts.
LicenseThe GitHub repository identifies the project license as MIT.The linked public GitHub repository identifies its license as Apache-2.0.
PurposeHspec is a testing framework for Haskell.MockK is a mocking library for Kotlin.
Test integrationsHspec integrates with QuickCheck, SmallCheck, and HUnit.The documentation describes JUnit 4 and JUnit 5 support, including a JUnit 5 extension for initializing mocks.

Plans

Hspec

  • HspecFree

Hspec pricing →

MockK

No plans published.

MockK pricing →

In their own words

Hspec

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

Visit hspec.github.io

MockK

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

Visit mockk.io