A simple console UI.
Moduletasty-1.5.3Haskell2010
Test.Tasty.Ingredients.Basic
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.
- 4 types
- 4 values
- Packagetasty-1.5.3
- Exports8
- LanguageHaskell2010
- LicenceMIT
- SourceBasic.hs
Console test reporter
4 declarationsReport only failed tests.
At the moment, this option only works globally. As an argument to localOption, it does nothing.
Constructors
Instances3Eq, Ord, IsOption
Eq HideSuccessesDefined in tasty-1.5.3 · Test.Tasty.Ingredients.ConsoleReporterOrd HideSuccessesDefined in tasty-1.5.3 · Test.Tasty.Ingredients.ConsoleReporterIsOption HideSuccessesDefined in tasty-1.5.3 · Test.Tasty.Ingredients.ConsoleReporter
By default, when the option --hide-successes is given and the output
goes to an ANSI-capable terminal, we employ some ANSI terminal tricks to
display the name of the currently running test and then erase it if it
succeeds.
These tricks sometimes fail, however—in particular, when the test names happen to be longer than the width of the terminal window. See
When that happens, this option can be used to disable the tricks. In that case, the test name will be printed only once the test fails.
Constructors
Instances1IsOption
IsOption AnsiTricksDefined in tasty-1.5.3 · Test.Tasty.Ingredients.ConsoleReporter
Listing tests
3 declarationsThe ingredient that provides the test listing functionality.
This option, when set to True, specifies that we should run in the «list tests» mode.
Obtain the list of all tests in the suite.
Adding options
1 declarationThis ingredient doesn't do anything apart from registering additional options.
The option values can be accessed using askOption.