Portability | portable |
---|---|
Maintainer | cabal-devel@haskell.org |
Safe Haskell | Safe-Inferred |
This module defines the detailed test suite interface which makes it possible to expose individual tests to Cabal or other test agents.
- data TestInstance = TestInstance {
- run :: IO Progress
- name :: String
- tags :: [String]
- options :: [OptionDescr]
- setOption :: String -> String -> Either String TestInstance
- data OptionDescr = OptionDescr {
- optionName :: String
- optionDescription :: String
- optionType :: OptionType
- optionDefault :: Maybe String
- data OptionType
- = OptionFile {
- optionFileMustExist :: Bool
- optionFileIsDir :: Bool
- optionFileExtensions :: [String]
- | OptionString {
- optionStringMultiline :: Bool
- | OptionNumber {
- optionNumberIsInt :: Bool
- optionNumberBounds :: (Maybe String, Maybe String)
- | OptionBool
- | OptionEnum [String]
- | OptionSet [String]
- | OptionRngSeed
- = OptionFile {
- data Test
- = Test TestInstance
- | Group {
- groupName :: String
- concurrently :: Bool
- groupTests :: [Test]
- | ExtraOptions [OptionDescr] Test
- type Options = [(String, String)]
- data Progress
- data Result
- testGroup :: String -> [Test] -> Test
Documentation
data TestInstance
TestInstance | |
|
data OptionDescr
OptionDescr | |
|
Eq OptionDescr | |
Read OptionDescr | |
Show OptionDescr |
data OptionType
OptionFile | |
| |
OptionString | |
| |
OptionNumber | |
| |
OptionBool | |
OptionEnum [String] | |
OptionSet [String] | |
OptionRngSeed |
Eq OptionType | |
Read OptionType | |
Show OptionType |
data Test
Test TestInstance | |
Group | |
| |
ExtraOptions [OptionDescr] Test |
type Options = [(String, String)]