 | test-framework-0.3.2: Framework for running and organising tests, with HUnit and QuickCheck support | Source code | Contents | Index |
|
Test.Framework.Providers.API |
|
|
Description |
This module exports everything that you need to be able to create your own framework test provider.
To create a provider you need to:
- Create an instance of the Testlike class
- Create an instance of the TestResultlike class
- Expose a function that lets people construct Test values using your new instances
|
|
Synopsis |
|
|
|
Documentation |
|
|
Something like the result of a test: works in concert with Testlike.
The type parameters are the type that is used for progress reports and the
type of the final output of the test respectively.
| | Methods | |
|
|
|
Something test-like in its behaviour. The type parameters are the type that
is used for progress reports, the type of the final output of the test and the
data type encapsulating the whole potential to do a test respectively.
| | Methods | |
|
|
|
Test names or descriptions. These are shown to the user
|
|
|
The name of a type of test, such as Properties or Test Cases. Tests of
types of the same names will be grouped together in the test run summary.
|
|
|
|
|
|
Assemble a number of tests into a cohesive group
|
|
|
|
|
Constructors | Finished f | | Improving i (i :~> f) | |
| Instances | |
|
|
bimapImproving :: (a -> c) -> (b -> d) -> (a :~> b) -> c :~> d | Source |
|
|
|
|
|
|
|
Instances | |
|
|
|
|
|
|
|
|
|
Given a number of microseconds and an improving IO action, run that improving IO action only
for at most the given period before giving up. See also timeout.
|
|
|
As timeoutImprovingIO, but don't bother applying a timeout to the action if Nothing is given
as the number of microseconds to apply the time out for.
|
|
module Test.Framework.Options |
|
module Test.Framework.Seed |
|
|
|
|
secondsToMicroseconds :: Num a => a -> a | Source |
|
|
microsecondsToPicoseconds :: Num a => a -> a | Source |
|
|
|
|
|
|
|
|
onLeft :: (a -> c) -> (a, b) -> (c, b) | Source |
|
|
onRight :: (b -> c) -> (a, b) -> (a, c) | Source |
|
|
|
Like unlines, but does not append a trailing newline if there
is at least one line. For example:
unlinesConcise ["A", "B"] == "A\nB"
unlinesConcise [] == ""
Whereas:
unlines ["A", "B"] == "A\nB\n"
unlines [] == ""
This is closer to the behaviour of unwords, which does not append
a trailing space.
|
|
mapAccumLM :: Monad m => (acc -> x -> m (acc, y)) -> acc -> [x] -> m (acc, [y]) | Source |
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |