| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Tasty.Ingredients.Basic
Description
This module exports the basic ingredients defined in the tasty
packages.
Note that if defaultIngredients from Test.Tasty suits your needs,
use that instead of importing this module.
Synopsis
- consoleTestReporter :: Ingredient
- newtype Quiet = Quiet Bool
- newtype HideSuccesses = HideSuccesses Bool
- listingTests :: Ingredient
- newtype ListTests = ListTests Bool
- testsNames :: OptionSet -> TestTree -> [TestName]
- includingOptions :: [OptionDescription] -> Ingredient
Console test reporter
consoleTestReporter :: Ingredient #
A simple console UI
Do not print test results (see README for details)
newtype HideSuccesses #
Report only failed tests
Constructors
| HideSuccesses Bool |
Instances
| Eq HideSuccesses # | |
Defined in Test.Tasty.Ingredients.ConsoleReporter Methods (==) :: HideSuccesses -> HideSuccesses -> Bool # (/=) :: HideSuccesses -> HideSuccesses -> Bool # | |
| Ord HideSuccesses # | |
Defined in Test.Tasty.Ingredients.ConsoleReporter Methods compare :: HideSuccesses -> HideSuccesses -> Ordering # (<) :: HideSuccesses -> HideSuccesses -> Bool # (<=) :: HideSuccesses -> HideSuccesses -> Bool # (>) :: HideSuccesses -> HideSuccesses -> Bool # (>=) :: HideSuccesses -> HideSuccesses -> Bool # max :: HideSuccesses -> HideSuccesses -> HideSuccesses # min :: HideSuccesses -> HideSuccesses -> HideSuccesses # | |
| IsOption HideSuccesses # | |
Defined in Test.Tasty.Ingredients.ConsoleReporter Methods defaultValue :: HideSuccesses # parseValue :: String -> Maybe HideSuccesses # optionName :: Tagged HideSuccesses String # | |
Listing tests
The ingredient that provides the test listing functionality
This option, when set to True, specifies that we should run in the
«list tests» mode
Instances
| Eq ListTests # | |
| Ord ListTests # | |
Defined in Test.Tasty.Ingredients.ListTests | |
| IsOption ListTests # | |
Defined in Test.Tasty.Ingredients.ListTests Methods parseValue :: String -> Maybe ListTests # optionName :: Tagged ListTests String # | |
testsNames :: OptionSet -> TestTree -> [TestName] #
Obtain the list of all tests in the suite
Adding options
includingOptions :: [OptionDescription] -> Ingredient #
This ingredient doesn't do anything apart from registering additional options.
The option values can be accessed using askOption.