hspec-discover-2.10.4: Automatically discover and run Hspec tests
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Hspec.Discover.Run

Description

A preprocessor that finds and combines specs.

NOTE: This module is not meant for public consumption. For user documentation look at http://hspec.github.io/hspec-discover.html.

Synopsis

Documentation

run :: [String] -> IO () Source #

data Spec Source #

Constructors

Spec String 
Hook String [Spec] 

Instances

Instances details
Show Spec Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

showsPrec :: Int -> Spec -> ShowS #

show :: Spec -> String #

showList :: [Spec] -> ShowS #

Eq Spec Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

(==) :: Spec -> Spec -> Bool #

(/=) :: Spec -> Spec -> Bool #

importList :: Maybe [Spec] -> ShowS Source #

Generate imports for a list of specs.

moduleNameFromId :: String -> String Source #

Return module name of a fully qualified identifier.

pathToModule :: FilePath -> String Source #

Derive module name from specified path.

data Tree Source #

Constructors

Leaf String 
Node String Forest 

Instances

Instances details
Show Tree Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

Eq Tree Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

(==) :: Tree -> Tree -> Bool #

(/=) :: Tree -> Tree -> Bool #

data Forest Source #

Constructors

Forest Hook [Tree] 

Instances

Instances details
Show Forest Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Eq Forest Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

(==) :: Forest -> Forest -> Bool #

(/=) :: Forest -> Forest -> Bool #

data Hook Source #

Constructors

WithHook 
WithoutHook 

Instances

Instances details
Show Hook Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

showsPrec :: Int -> Hook -> ShowS #

show :: Hook -> String #

showList :: [Hook] -> ShowS #

Eq Hook Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

(==) :: Hook -> Hook -> Bool #

(/=) :: Hook -> Hook -> Bool #

Orphan instances

IsString ShowS Source # 
Instance details

Methods

fromString :: String -> ShowS #