Stability | experimental |
---|---|
Safe Haskell | None |
Test.Hspec.Core
Contents
Description
This module provides access to Hspec's internals. It is less stable than other parts of the API. For most users Test.Hspec is more suitable!
- class Example a where
- evaluateExample :: a -> Params -> (IO () -> IO ()) -> ProgressCallback -> IO Result
- data Params = Params {}
- type Progress = (Int, Int)
- type ProgressCallback = Progress -> IO ()
- data Result
- data SpecM a
- runSpecM :: Spec -> [SpecTree]
- fromSpecList :: [SpecTree] -> Spec
- data SpecTree
- data Item = Item {
- itemIsParallelizable :: Bool
- itemExample :: Params -> (IO () -> IO ()) -> ProgressCallback -> IO Result
- mapSpecItem :: (Item -> Item) -> Spec -> Spec
- modifyParams :: (Params -> Params) -> Spec -> Spec
- describe :: String -> [SpecTree] -> SpecTree
- it :: Example a => String -> a -> SpecTree
A type class for examples
A type class for examples.
Methods
evaluateExample :: a -> Params -> (IO () -> IO ()) -> ProgressCallback -> IO ResultSource
Constructors
Params | |
Fields |
type ProgressCallback = Progress -> IO ()Source
The result of running an example.
A writer monad for constructing specs
A writer monad for SpecTree
forests.
Internal representation of a spec tree
Internal representation of a spec.
Constructors
Item | |
Fields
|