tasty-silver-3.3.2: A fancy test runner, including support for golden tests.
Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Silver.Interactive

Description

Golden test management, interactive mode. Runs the tests, and asks the user how to proceed in case of failure or missing golden standard.

Synopsis

Command line helpers

defaultMain :: TestTree -> IO () Source #

Like defaultMain from the main tasty package, but also includes the golden test management capabilities.

defaultMain1 :: [RegexFilter] -> TestTree -> IO () Source #

The ingredient

newtype Interactive Source #

Option for interactive mode.

Constructors

Interactive Bool 

Instances

Instances details
Eq Interactive Source # 
Instance details

Defined in Test.Tasty.Silver.Interactive

Methods

(==) :: Interactive -> Interactive -> Bool

(/=) :: Interactive -> Interactive -> Bool

Ord Interactive Source # 
Instance details

Defined in Test.Tasty.Silver.Interactive

IsOption Interactive Source # 
Instance details

Defined in Test.Tasty.Silver.Interactive

Methods

defaultValue :: Interactive

parseValue :: String -> Maybe Interactive

optionName :: Tagged Interactive String

optionHelp :: Tagged Interactive String

showDefaultValue :: Interactive -> Maybe String

optionCLParser :: Parser Interactive

Programmatic API

runTestsInteractive :: DisabledTests -> OptionSet -> TestTree -> IO Bool Source #

A simple console UI.