Stability | provisional |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
- hspec :: Spec -> IO ()
- hspecWith :: Config -> Spec -> IO ()
- hspecResult :: Spec -> IO Summary
- hspecWithResult :: Config -> Spec -> IO Summary
- data Summary = Summary {}
- data Config = Config {
- configDryRun :: Bool
- configPrintCpuTime :: Bool
- configFastFail :: Bool
- configRerun :: Bool
- configFilterPredicate :: Maybe (Path -> Bool)
- configSkipPredicate :: Maybe (Path -> Bool)
- configQuickCheckSeed :: Maybe Integer
- configQuickCheckMaxSuccess :: Maybe Int
- configQuickCheckMaxDiscardRatio :: Maybe Int
- configQuickCheckMaxSize :: Maybe Int
- configSmallCheckDepth :: Int
- configColorMode :: ColorMode
- configFormatter :: Maybe Formatter
- configHtmlOutput :: Bool
- configOutputFile :: Either Handle FilePath
- configConcurrentJobs :: Maybe Int
- data ColorMode
- type Path = ([String], String)
- defaultConfig :: Config
- configAddFilter :: (Path -> Bool) -> Config -> Config
Running a spec
hspec :: Spec -> IO () Source #
Run given spec and write a report to stdout
.
Exit with exitFailure
if at least one spec item fails.
hspecWith :: Config -> Spec -> IO () Source #
Run given spec with custom options.
This is similar to hspec
, but more flexible.
hspecResult :: Spec -> IO Summary Source #
Run given spec and returns a summary of the test run.
Note: hspecResult
does not exit with exitFailure
on failing spec
items. If you need this, you have to check the Summary
yourself and act
accordingly.
hspecWithResult :: Config -> Spec -> IO Summary Source #
Run given spec with custom options and returns a summary of the test run.
Note: hspecWithResult
does not exit with exitFailure
on failing spec
items. If you need this, you have to check the Summary
yourself and act
accordingly.
Types
Summary of a test run.
Config | |
|