hspec-discover-2.7.10: 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 

Fields

Instances

Instances details
Eq Spec Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

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

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

Show Spec Source # 
Instance details

Defined in Test.Hspec.Discover.Run

Methods

showsPrec :: Int -> Spec -> ShowS

show :: Spec -> String

showList :: [Spec] -> ShowS

importList :: [Spec] -> ShowS Source #

Generate imports for a list of specs.

fileToSpec :: FilePath -> FilePath -> Maybe Spec Source #

findSpecs :: FilePath -> IO [Spec] Source #

getFilesRecursive :: FilePath -> IO [FilePath] Source #

driverWithFormatter :: String -> ShowS Source #

moduleNameFromId :: String -> String Source #

Return module name of a fully qualified identifier.

pathToModule :: FilePath -> String Source #

Derive module name from specified path.

Orphan instances

IsString ShowS Source # 
Instance details

Methods

fromString :: String -> ShowS