-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A library to make a quick test-runner script. -- -- This library makes it easy to define an executable, which can find and -- run a bunch of tests for a binary. @package test-lib @version 0.2.2 module TestLib -- | Specifies how the test runner should behave. data Config Config :: String -> (String -> [String]) -> (String -> Bool) -> Config -- | Use this binary unless one is explicitly provided. [cfgDefaultBinary] :: Config -> String -- | Given a test, produce a set of parameters for the binary. [cfgBinOpts] :: Config -> String -> [String] -- | Examine a file name to determine if it is a test. [cfgIsTestCase] :: Config -> String -> Bool -- | Define a main function for an executable. mainWith :: Config -> IO () -- | Run with the given options mainWithOpts :: Options -> IO () main :: IO () data Options Options :: String -> [String] -> Bool -> FilePath -> [FilePath] -> Maybe String -> Bool -> [String] -> [String] -> Maybe Config -> Options [optBinary] :: Options -> String [optOther] :: Options -> [String] [optHelp] :: Options -> Bool [optResultDir] :: Options -> FilePath [optTests] :: Options -> [FilePath] [optDiffTool] :: Options -> Maybe String [optIgnoreExpected] :: Options -> Bool [optTestFileExts] :: Options -> [String] -- | Add this flags to the binary, followed by the test file [optBinFlags] :: Options -> [String] [optCfg] :: Options -> Maybe Config