Safe Haskell | None |
---|
Golden test management
- defaultMain :: TestTree -> IO ()
- defaultMainWithRunner :: Runner -> TestTree -> IO ()
- goldenManagerParser :: Parser (OptionSet -> TestTree -> IO ())
- acceptGoldenTests :: OptionSet -> TestTree -> IO ()
Command line helpers
defaultMain :: TestTree -> IO ()Source
Parse the command line arguments and run the tests using the standard console runner.
If any golden test management commands are specified, execute them instead.
Note: this is a replacement for Test.Tasty's defaultMain
and has a name conflict with it. You'll need to use hiding
or
a similar means to resolve this.
defaultMainWithRunner :: Runner -> TestTree -> IO ()Source
Parse the command line arguments and run the tests using the provided runner.
If any golden test management commands are specified, execute them instead.
Note: this is a replacement for Test.Tasty's defaultMainWithRunner
and has a name conflict with it. You'll need to use hiding
or
a similar means to resolve this.
goldenManagerParser :: Parser (OptionSet -> TestTree -> IO ())Source
Parse possible management commands. Fail (as a parser) if no management commands are given.
Programmatic API
acceptGoldenTests :: OptionSet -> TestTree -> IO ()Source
Accept all golden tests in the test tree