Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Golden test management, interactive mode. Runs the tests, and asks the user how to proceed in case of failure or missing golden standard.
Synopsis
- defaultMain :: TestTree -> IO ()
- defaultMain1 :: [RegexFilter] -> TestTree -> IO ()
- interactiveTests :: DisabledTests -> Ingredient
- newtype Interactive = Interactive Bool
- runTestsInteractive :: DisabledTests -> OptionSet -> TestTree -> IO Bool
- type DisabledTests = TestPath -> Bool
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
interactiveTests :: DisabledTests -> Ingredient Source #
newtype Interactive Source #
Option for interactive mode.
Instances
Eq Interactive Source # | |
Defined in Test.Tasty.Silver.Interactive (==) :: Interactive -> Interactive -> Bool # (/=) :: Interactive -> Interactive -> Bool # | |
Ord Interactive Source # | |
Defined in Test.Tasty.Silver.Interactive compare :: Interactive -> Interactive -> Ordering # (<) :: Interactive -> Interactive -> Bool # (<=) :: Interactive -> Interactive -> Bool # (>) :: Interactive -> Interactive -> Bool # (>=) :: Interactive -> Interactive -> Bool # max :: Interactive -> Interactive -> Interactive # min :: Interactive -> Interactive -> Interactive # | |
IsOption Interactive Source # | |
Defined in Test.Tasty.Silver.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.
type DisabledTests = TestPath -> Bool Source #