The hspec-discover package

[Tags: library, mit, program]

Say you have a driver module for your test suite.

> module Main where > > import Test.Hspec.Monadic > > import qualified FooSpec > import qualified Foo.BarSpec > import qualified BazSpec > > main :: IO () > main = hspecX $ do > describe "Foo" FooSpec.spec > describe "Foo.Bar" Foo.BarSpec.spec > describe "Baz" BazSpec.spec

Then you can replace it with the following.

> -# OPTIONS_GHC -F -pgmF hspec-discover #-

All files with a name that ends in @Spec.hs@ are include in the generated test suite. And it is assumed, that they export a @spec@ of type `Test.Hspec.Monadic.Specs`.

Full documentation is here: <https://github.com/sol/hspec-discover#readme>

Properties

Versions0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.1.0, 0.1.0.1, 0.2.0, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.2.0, 2.2.1, 2.2.2, 2.2.3 (info)
Change logNone available
Dependenciesbase (>=4 && <=5), directory, filepath, hspec (==1.1.*) [details]
LicenseMIT
Copyright(c) 2012 Simon Hengel
AuthorSimon Hengel <sol@typeful.net>
MaintainerSimon Hengel <sol@typeful.net>
CategoryTesting
Source repositoryhead: git clone https://github.com/sol/hspec-discover
Executableshspec-discover
UploadedWed May 16 06:56:36 UTC 2012 by SimonHengel
DistributionsDebian:2.2.1, FreeBSD:2.1.10, LTSHaskell:2.2.3, NixOS:2.2.3, Stackage:2.2.3
Downloads13628 total (60 in last 30 days)
Votes
0 []
StatusDocs uploaded by user [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees