Skip to content
SPECIFICTION
Get listed

ExUnit vs Hspec

ExUnit

hexdocs.pm

Hspec

hspec.github.io

Side by side

FigureExUnitHspec
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYesYes
Plans published11
Spec score · Unit Testing Frameworks8.3 (#4)8.1 (#10)
Spec score · Unit Testing8.2 (#6)8.0 (#9)
ConfigurationExUnit options include test timeouts, maximum parallel cases, failure limits, filters, logging capture, colors, and random seeds.Hspec can read options from `~/.hspec`, a project `.hspec` file, environment variables, or command-line arguments, with command-line options taking highest precedence.
LicenseThe Elixir source code is released under the Apache License 2.0.The GitHub repository identifies the project license as MIT.
PurposeExUnit is a unit testing framework for Elixir.Hspec is a testing framework for Haskell.

Plans

ExUnit

  • ExUnitFree

ExUnit pricing →

Hspec

  • HspecFree

Hspec pricing →

In their own words

ExUnit

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

Visit hexdocs.pm

Hspec

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

Visit hspec.github.io