How To Install Hspec-discover On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?
Install hspec-discover
-
Debian
apt-get install hspec-discover
Click to copy -
Ubuntu
apt-get install hspec-discover
Click to copy -
Arch Linux
pacman -S hspec-discover
Click to copy -
Kali Linux
apt-get install hspec-discover
Click to copy -
Fedora
dnf install hspec-discover
Click to copy -
Raspbian
apt-get install hspec-discover
Click to copy
hspec-discover
Automatically discover and run Hspec testsIt 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 fileslibghc-hspec-dev
behavior-driven development for HaskellHspec 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.