How To Install Hspec-discover On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

How To Install Hspec-discover On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

hspec-discover

Automatically discover and run Hspec tests

Maintainer: Debian Haskell Group



Section: haskell

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 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
Installing hspec-discover command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of hspec-discover 2023 package in your OS.