The hspec-discover package

[Tags: deprecated, library, mit]

Deprecated in favor of hspec

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 (info)
Dependenciesbase (>=4 && <=5), directory, filepath, hspec (==1.1.*)
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
Upload dateWed May 16 06:56:36 UTC 2012
Uploaded bySimonHengel
Downloads1023 total (64 in last 30 days)

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees