hspec-discover

Automatically discover and run Hspec tests

Install

All systems
curl cmd.cat/hspec-discover.sh
Debian Debian
apt-get install hspec-discover
Ubuntu
apt-get install hspec-discover
Arch Arch Linux
pacman -S hspec-discover
image/svg+xml Kali Linux
apt-get install hspec-discover
Fedora
dnf install hspec-discover
Windows (WSL2)
sudo apt-get update sudo apt-get install hspec-discover
Raspbian
apt-get install hspec-discover

hspec-discover

Automatically discover and run Hspec tests

It is a useful convention to have one spec file for each source file. That way it is straightforward to find the corresponding spec for a given piece of code. But it requires error prone, and neither challenging nor interesting boiler plate code. So it should be automated. Hspec provides a solution for that. It makes creative use of GHC's support for custom preprocessors. The developer only has to create a test driver that contains a single line. A complete example is at https://github.com/hspec/hspec-example.

ghc-hspec-discover-devel

development files

libghc-hspec-dev

behavior-driven development for Haskell

Hspec is roughly based on the Ruby library RSpec. However, Hspec is just a framework for running HUnit and QuickCheck tests. Compared to other options, it provides a much nicer syntax that makes tests very easy to read. This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.

haskell-hspec-discover

Automatically discover and run Hspec tests