Cabal-3.4.0.0: A framework for packaging Haskell software
CopyrightThomas Tuegel 2010
LicenseBSD3
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Documentation

data TestInstance #

Constructors

TestInstance 

Fields

data OptionDescr #

Constructors

OptionDescr 

Fields

data Test #

Constructors

Test TestInstance 
Group 

Fields

  • groupName :: String
     
  • concurrently :: Bool

    If true, then children of this group may be run in parallel. Note that this setting is not inherited by children. In particular, consider a group F with "concurrently = False" that has some children, including a group T with "concurrently = True". The children of group T may be run concurrently with each other, as long as none are run at the same time as any of the direct children of group F.

  • groupTests :: [Test]
     
ExtraOptions [OptionDescr] Test 

type Options = [(String, String)] #

data Result #

Constructors

Pass 
Fail String 
Error String 

Instances

Instances details
Eq Result # 
Instance details

Defined in Distribution.TestSuite

Methods

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

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

Read Result # 
Instance details

Defined in Distribution.TestSuite

Show Result # 
Instance details

Defined in Distribution.TestSuite

testGroup :: String -> [Test] -> Test #

Create a named group of tests, which are assumed to be safe to run in parallel.