GitXplorerGitXplorer
U

tasty-golden

public
37 stars
15 forks
5 issues

Commits

List of commits on branch master.
Unverified
49cc01fda05ac8a697834d77b814869a26236cfc

Stack CI for GHC 8.10 - 9.8

aandreasabel committed 6 months ago
Unverified
62b75508b703ee0a2ab9f35a94d6941e4b0821f6

Haskell-CI on GitHub for GHC 8.0 - 9.10

aandreasabel committed 6 months ago
Unverified
3282bce3dc422ba304b9a6c949ecae7f26cb9e95

Release v2.3.5

UUnkindPartition committed 3 years ago
Unverified
985cc6b3a45786788d968788b08b847a71e9f967

Do not depend on unix-compat

BBodigrim committed 3 years ago
Unverified
fdbe0af58e4f58e24bd2b34de98c074674037a58

Remove >= from cabal-version

ffelixonmars committed 4 years ago
Unverified
d199659ecd6933feb59c0742ad53fd139b33c34f

Update the golden file on --accept if decoding the golden file failed with an exception

UUnkindPartition committed 4 years ago

README

The README file for this repository.

This package provides support for «golden testing».

A golden test is an IO action that writes its result to a file. To pass the test, this output file should be identical to the corresponding «golden» file, which contains the correct result for the test.

To get started with golden testing and this library, see Introduction to golden testing.

Command-line options

To see the command-line options, run your test suite with --help. Here's an example output:

Mmm... tasty test suite

Usage: test [-p|--pattern PATTERN] [-t|--timeout DURATION] [-l|--list-tests]
            [-j|--num-threads NUMBER] [-q|--quiet] [--hide-successes]
            [--color never|always|auto] [--ansi-tricks ARG] [--accept]
            [--no-create] [--size-cutoff n]
            [--delete-output never|onpass|always]

Available options:
  -h,--help                Show this help text
  -p,--pattern PATTERN     Select only tests which satisfy a pattern or awk
                           expression
  -t,--timeout DURATION    Timeout for individual tests (suffixes: ms,s,m,h;
                           default: s)
  -l,--list-tests          Do not run the tests; just print their names
  -j,--num-threads NUMBER  Number of threads to use for tests
                           execution (default: # of cores/capabilities)
  -q,--quiet               Do not produce any output; indicate success only by
                           the exit code
  --hide-successes         Do not print tests that passed successfully
  --color never|always|auto
                           When to use colored output (default: auto)
  --ansi-tricks ARG        Enable various ANSI terminal tricks. Can be set to
                           'true' or 'false'. (default: true)
  --accept                 Accept current results of golden tests
  --no-create              Error when golden file does not exist
  --size-cutoff n          hide golden test output if it's larger than n
                           bytes (default: 1000)
  --delete-output never|onpass|always
                           If there is a golden file, when to delete output
                           files (default: never)

See also tasty's README.

Maintainers

Roman Cheplyaka is the primary maintainer.

Oliver Charles is the backup maintainer. Please get in touch with him if the primary maintainer cannot be reached.