hledger-0.22: The main command-line interface for the hledger accounting tool.

Safe Haskell | None

Hledger.Cli.Tests

Description

A simple test runner for hledger's built-in unit tests.

Synopsis

- test' :: CliOpts -> IO ()
- runTests :: CliOpts -> IO Counts
- runTestsTillFailure :: CliOpts -> IO (Maybe String)
- flatTests :: CliOpts -> Test
- hierarchicalTests :: CliOpts -> Test

# Documentation

test' :: CliOpts -> IO ()Source

Run HUnit unit tests and exit with success or failure.

runTests :: CliOpts -> IO Counts Source

Run all or just the matched unit tests and return their HUnit result counts.

runTestsTillFailure :: CliOpts -> IO (Maybe String)Source

Run all or just the matched unit tests until the first failure or error, returning the name of the problem test if any.

flatTests :: CliOpts -> Test Source

All or pattern-matched tests, as a flat list to show simple names.

hierarchicalTests :: CliOpts -> Test Source

All or pattern-matched tests, in the original suites to show hierarchical names.