Default settings for the terminal UI formatter.
Modulesandwich-0.3.1.0Haskell2010
Test.Sandwich.Formatters.TerminalUI
- 2 types
- 11 values
- Packagesandwich-0.3.1.0
- Exports13
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceTypes.hs
The terminal UI formatter produces an interactive UI for running tests and inspecting their results.
Options
9 declarationsThe initial visibility threshold to use when the formatter starts.
Whether to show or hide run times.
Whether to show or hide visibility thresholds next to nodes.
Log level for test log displays.
The initial folding settings to use when the formatter starts.
Default value to use for the EDITOR environment variable when one is not provided. If Nothing and EDITOR can't be found, edit commands will do nothing.
Here are some recommended values, depending on your preferred editor:
Emacs:
export EDITOR="emacsclient --eval '(progn (find-file FILE) (goto-line LINE) (forward-char (- COLUMN 1)) (recenter))'"Terminal Emacs:
export EDITOR="emacsclient -nw --eval '(progn (find-file FILE) (goto-line LINE) (forward-char (- COLUMN 1)) (recenter))'"Vim:
export EDITOR="vim +LINE"
Callback to open a source location in your editor. By default, finds the command in the EDITOR environment variable and invokes it with the strings LINE, COLUMN, and FILE replaced with the line number, column, and file path. If FILE is not found in the string, it will be appended to the command after a space. It's also passed a debug callback that accepts a Text; messages logged with this function will go into the formatter logs.
Custom exception formatters, used to nicely format custom exception types.
If True, create a Unix socket at <test-root>/tui-debug.sock for debug output.
Connect with nc -U <path> to receive line-oriented debug events about the TUI event loop.
Auxiliary types
2 declarationsInstances2Eq, Show
Eq InitialFoldingDefined in sandwich-0.3.1.0 · Test.Sandwich.Formatters.TerminalUI.TypesShow InitialFoldingDefined in sandwich-0.3.1.0 · Test.Sandwich.Formatters.TerminalUI.Types
Constructors
Util
1 declarationOrphan instances
1 instanceFormatter TerminalUIFormatter