-
Make
--accept
work (closes #24). With this flag the golden value will automatically get updated.It is possible to run
--accept
together with--interactive
although this combination does not make much sense. (This will show the diff interactively but then just update the golden value.)The fix of
--accept
unifies the code for interactive and non-interactive test runs and might have introduced changes in the test output formatting. -
Tested with GHC 8.0 - 9.10.1.
Dedicated to Anne-Christine. Happy birthday!
- Fix test reporting when built with
tasty-1.5
(regression in 3.3.1.2, see #41). filterWithRedex
is now the identity if no inclusion/exclusion regexes are given in the options.- Drop support for GHC 7.4 for the sake of
LambdaCase
. - Tested with GHC 8.0 - 9.8.1.
- Fix compilation with
tasty-1.5
- Tested with GHC 7.4 - 9.8.0
- Fix compilation with
mtl-2.3
- Tested with GHC 7.4 - 9.2.2
- No longer treat
git diff
warnings as failure (#33)
- Windows portability (#16):
- Calls to
git diff
are no longer indirected viash -c
. - When indirection via
sh -c
is used, backslashes in filenames are converted to slashes.
- Calls to
- Tested with GHC 7.4 - 9.2.1-RC1
- Tested with GHC 7.4 - 9.0 (fixed compilation with GHC 7.4 - 7.8)
- CI via GitHub Actions on platforms
ubuntu
,macOS
,windows
.
- Fix cabal warning (#27, thanks to felixonmars)
- Fix option parser (#25)
- Compatibility with tasty 1.4 (breaks compatibility with older versions of tasty)
- Fix missing space in git diff calls introduced in v3.1.14 (#22, thanks to croyzor)
- Fix wrong interpretation of git diff exit codes (#21, thanks to croyzor)
- Add option to disable ansi tricks (#18, thanks to L-TChen)
- Fix compilation with GHC 8.4 (thanks to asr)
- Fix compilation with GHC 8.4
- Better error handling for calls to external tools (
git diff
)
- Fix compilation with optparse-applicative 0.13.*.
- Provide character-level diff if wdiff and colordiff are available.
- Fix compilation with GHC 8.
- Make update function optional for test cases.
- Add feature to disable certain tests, still showing them in the UI but not running them.
- Fix a concurrency issue in the interactive test runner.
- Expose regex filter modules.
- Fix issue with regex filters when used together with withResource nodes.
- Add experimental --regex-include option to select tests using a regex. This option is highly experimental and may change in later versions!
- The --regex-include/--regex-exclude option may be given multiple times now. The exclusion regexes are applied first, after that all inclusion regexes.
- Add experimental --regex-exclude option to filter out tests using a regex. This option is highly experimental and may change in later versions!
- Use package temporary instead of temporary-rc.
- Re-add command line options for test runner which were accidentally removed.
- Add non-interactive mode to test runner, printing diffs/actual values directly to stdout. Useful for (travis) CI.
- Report success instead of failure if new result is accepted in interactive mode.
- Fixed & tested support for GHC 7.4.2 - 7.10.1
- Added missing lower bound for bytestring
- Removed upper bounds for most dependencies
- Enable travis CI builds
- Refactored API
- Add interactive mode
- Warn when some tests threw exceptions during
--accept
- Properly handle exceptions; don't swallow Ctrl-C
Restore compatibility with older compilers
Relax Cabal
dependency
Add findByExtension
Catch exceptions when accepting golden tests
Switch to temporary-rc
- Fix a bug where the result of the comparison function would reference yet unread data from a semiclosed file and the file gets closed, leading to a runtime exception
- Export
writeBinaryFile
- Improve the docs
- Update to work with
tasty-0.8
Update to work with tasty-0.7
Update to work with tasty-0.5
Migrate to ingredients
Add goldenVsStringDiff
Update to work with tasty-0.2
Initial release of tasty-golden
(derived from test-framework-golden-1.1.x
)