Copyright | Thomas Tuegel 2010 |
---|---|
License | BSD3 |
Maintainer | cabal-devel@haskell.org |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Distribution.TestSuite
Description
This module defines the detailed test suite interface which makes it possible to expose individual tests to Cabal or other test agents.
Synopsis
- data TestInstance = TestInstance { }
- data OptionDescr = OptionDescr { }
-
data
OptionType
-
=
OptionFile
{
- optionFileMustExist :: Bool
- optionFileIsDir :: Bool
- optionFileExtensions :: [ String ]
- | OptionString { }
-
|
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 Source #
Constructors
TestInstance | |
Fields
|
data OptionDescr Source #
Constructors
OptionDescr | |
Fields
|
Instances
Eq OptionDescr Source # | |
Defined in Distribution.TestSuite Methods (==) :: OptionDescr -> OptionDescr -> Bool Source # (/=) :: OptionDescr -> OptionDescr -> Bool Source # |
|
Read OptionDescr Source # | |
Defined in Distribution.TestSuite Methods readsPrec :: Int -> ReadS OptionDescr Source # readList :: ReadS [ OptionDescr ] Source # readPrec :: ReadPrec OptionDescr Source # readListPrec :: ReadPrec [ OptionDescr ] Source # |
|
Show OptionDescr Source # | |
Defined in Distribution.TestSuite |
data OptionType Source #
Constructors
OptionFile | |
Fields
|
|
OptionString | |
Fields |
|
OptionNumber | |
Fields
|
|
OptionBool | |
OptionEnum [ String ] | |
OptionSet [ String ] | |
OptionRngSeed |
Instances
Eq OptionType Source # | |
Defined in Distribution.TestSuite Methods (==) :: OptionType -> OptionType -> Bool Source # (/=) :: OptionType -> OptionType -> Bool Source # |
|
Read OptionType Source # | |
Defined in Distribution.TestSuite Methods readsPrec :: Int -> ReadS OptionType Source # readList :: ReadS [ OptionType ] Source # readPrec :: ReadPrec OptionType Source # readListPrec :: ReadPrec [ OptionType ] Source # |
|
Show OptionType Source # | |
Defined in Distribution.TestSuite |
Constructors
Test TestInstance | |
Group | |
Fields
|
|
ExtraOptions [ OptionDescr ] Test |