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
- data Params = Params {}
- type Progress = (Int, Int)
- data Result
- data SpecM a
- runSpecM :: Spec -> [SpecTree]
- fromSpecList :: [SpecTree] -> Spec
- data SpecTree
- data Item = Item {
- itemIsParallelizable :: Bool
- itemRequirement :: String
- itemExample :: Params -> (IO () -> IO ()) -> IO Result
- mapSpecItem :: (Item -> Item) -> Spec -> Spec
- modifyParams :: (Params -> Params) -> Spec -> Spec
- describe :: String -> [SpecTree] -> SpecTree
- it :: Example a => String -> a -> SpecTree
- type Specs = [SpecTree]
- hspecB :: [SpecTree] -> IO Bool
- hspecX :: [SpecTree] -> IO ()
- hHspec :: Handle -> [SpecTree] -> IO Summary
- hspec :: [SpecTree] -> IO ()
A type class for examples
A type class for examples.
Params | |
|
The result of running an example.
A writer monad for constructing specs
Internal representation of a spec tree
Item | |
|
describe :: String -> [SpecTree] -> SpecTreeSource
The describe
function combines a list of specs into a larger spec.