Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
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 -> IO [SpecTree]
- fromSpecList :: [SpecTree] -> Spec
- data SpecTree
- mapSpecTree :: (SpecTree -> SpecTree) -> Spec -> Spec
- data Item = Item {
- itemRequirement :: String
- itemLocation :: Maybe Location
- itemIsParallelizable :: Bool
- itemExample :: Params -> (IO () -> IO ()) -> ProgressCallback -> IO Result
- data Location = Location {}
- data LocationAccuracy
- mapSpecItem :: (Item -> Item) -> Spec -> Spec
- modifyParams :: (Params -> Params) -> Spec -> Spec
- specGroup :: String -> [SpecTree] -> SpecTree
- specItem :: Example a => String -> a -> SpecTree
- describe :: String -> [SpecTree] -> SpecTree
- it :: Example a => String -> a -> SpecTree
A type class for examples
A type class for examples.
evaluateExample :: a -> Params -> (IO () -> IO ()) -> ProgressCallback -> IO Result Source
type ProgressCallback = Progress -> IO () Source
The result of running an example.
A writer monad for constructing specs
Internal representation of a spec tree
Internal representation of a spec.
Item | |
|
specGroup :: String -> [SpecTree] -> SpecTree Source
The specGroup
function combines a list of specs into a larger spec.