Skip to main content

Silent Formatter

The silent formatter prints only the run root of the test tree. It's useful when you don't want to see live output, since you'll just examine the results on disk later. It can also be used while testing in CI with the Slack formatter enabled.

Silent Formatter output

Usage#

If you're using runSandwichWithCommandLineArgs, you can simply pass --silent and the silent formatter will be selected.

If you're using the lower-level runSandwich, simply include the formatter in the optionsFormatters of your sandwich options.

import Test.Sandwich.Formatters.Silent
main :: IO ()
main = runSandwich options myTests
where
options = defaultOptions {
optionsFormatters = [SomeFormatter defaultSilentFormatter]
}