tasty-golden-2.0: Golden tests support for tasty

Safe HaskellNone

Test.Tasty.Golden.Manage

Contents

Description

Golden test management

Synopsis

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