hspec-expectations-match alternatives and similar packages
Based on the "hspec" category.
Alternatively, view hspec-expectations-match alternatives based on common mentions on social networks and blogs.
-
hspec-checkers
Allows to use checkers properties from hspec -
hspec-expectations
Catchy combinators for HUnit -
hspec-expectations-json
Hspec expectations on JSON Values -
hspec-golden-aeson
Use tests to monitor changes in Aeson serialization -
hspec-jenkins
Jenkins-friendly XML formatter for Hspec -
hspec-attoparsec
utility functions for testing attoparsec parsers with hspec -
hspec-megaparsec
Utility functions for testing Megaparsec parsers with Hspec -
hspec-test-framework
Run test-framework tests with Hspec -
hspec-hedgehog
Hedgehog support for the Hspec testing framework -
hspec-hashable
Initial project template from stack -
hspec-expectations-pretty-diff
Catchy combinators for HUnit +++ colored pretty-printed diffs -
hspec-server
Test Framework like ServerSpec for Haskell -
hspec-stack-rerun
Simple project template from stack -
hspec-leancheck
LeanCheck support for the Hspec test framework. -
hspec-expectations-lens
Optics for hspec -
hspec-need-env
Read environment variables for hspec tests -
hspec-multicheck
A testing framework for Haskell using Hspec
Static code analysis for 29 languages.
Do you think we are missing an alternative of hspec-expectations-match or a related project?
README
hspec-expectations-match 
hspec-expectations-match
is a Haskell package that provides expectations for use with hspec
that use Template Haskell to assert that a value matches a particular pattern. The primary expectation is shouldMatch
:
{-# LANGUAGE TemplateHaskell #-}
ghci> $([|Just True|] `shouldMatch` [p|Just _|])
ghci> $([|Nothing|] `shouldMatch` [p|Just _|])
*** Exception: Nothing failed to match pattern (Just x)
Additionally, any bindings created by the pattern will be returned if the pattern is successfully matched, making it easier to extract the result of some assertion and use it to make further assertions.
ghci> $([|Just True|] `shouldMatch` [p|Just x|])
True
ghci> $([|[1, 2]|] `shouldMatch` [p|[x, y]|])
(1, 2)
For more information, see the documentation on Hackage.