Stability | experimental |
---|---|
Safe Haskell | None |
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 :: Params -> a -> IO Result
- data Params = Params {}
- data Result
- data SpecM a
- runSpecM :: Spec -> [SpecTree]
- fromSpecList :: [SpecTree] -> Spec
- data SpecTree
- describe :: String -> [SpecTree] -> SpecTree
- it :: Example a => String -> a -> SpecTree
- type Spec = SpecTree
- type Specs = [SpecTree]
- hspecB :: [SpecTree] -> IO Bool
- hspecX :: [SpecTree] -> IO ()
- hHspec :: Handle -> [SpecTree] -> IO Summary
- hspec :: [SpecTree] -> IO ()
- type Pending = Pending
- pending :: String -> Pending
A type class for examples
A type class for examples.
evaluateExample :: Params -> a -> IO ResultSource
The result of running an example.
A writer monad for constructing specs
Internal representation of a spec tree
Internal representation of a spec.
describe :: String -> [SpecTree] -> SpecTreeSource
The describe
function combines a list of specs into a larger spec.