Expose timed and getTime
- Document and expose installSignalHandlers
- Enable colors in Emacs and other almost-ANSI-capable terminals
Make it possible to declare dependencies between tests (see the README for details)
Make tasty work with GHCJS
Fix compatibility with GHC 8.6
Fix a bug where some (mostly Asian) characters would break alignment in the terminal output
Fix a bug where
-l was still using
/ instead of
. as a field separator
NOTE: This major release contains some breaking changes to the semantics of patterns.
In the original pattern design I didn't notice the conflict between using
a field separator and as the AWK syntax for pattern matching
The new patterns have been around for a relatively short time (5 months), so hopefully the breakage won't be too big. I'm sorry about any problems caused by the change.
See https://github.com/feuerbach/tasty/issues/220 for the discussion.
The field separator in patterns is changed from slash (
/) to period (
.is now allowed in raw patterns.
The field separator is used to join the group names and the test name when comparing to a pattern such as
If you used
before, now you should use
if you meant "test/group
if you meant "test/group containing
foo/barin the name".
The need for escaping the slash inside the
/.../pattern was precisely the motivation for this change.
Raw patterns (ones that are not AWK expressions) may no longer contain slashes (
is no longer allowed, and
is now parsed as an AWK expression
/foo/, whereas before it was treated as a raw pattern and converted to
The reason for this change is that
/foo/is a valid AWK expression and should be parsed as such.
Raw patterns may now contain hyphens, so e.g.
-p type-checkingnow works.
In theory this makes some valid AWK expressions (such as
NF-2) not to be parsed as such, but they are either unlikely to be useful or could also be expressed in other ways (
Several new exports, mostly for testing/debugging patterns:
TestPatternnow has a
- The constructors of
TestPatternare now exported.
parseAwkExpris introduced and can be used in ghci to see how an AWK expression is parsed. (For parsing test patterns, which include raw patterns in addition to AWK expression, use
Fix a bug where a test suite that uses resources would hang if interrupted
- Add a
safeReadBoolfunction, for case-insensitive parsing of boolean options
- Convert all tasty's own options to case-insensitive
Adjust lower bounds for the dependencies (mtl and optparse-applicative)
- New pattern language (see the README and/or the blog post)
- Make the
Fix compatibility with GHC 8.4
Backward compat breaking revision of
that exposes the name of tests/groups.
Expose and document several of the internals of
Fix compatibility with GHC 7.4
- Make the
--quietmode more efficient on a large number of tests
- Fix a bug where a cursor would disappear if the test suite was terminated by a signal other than SIGINT.
Make filtering tests (
-p) work faster
Fix a critical bug in the quiet mode (
the exit status could be wrong or the test suite could hang.
Fix compatibility with the latest
composeReporters, a function to run multiple reporter ingredients
Fix compatibility with
regex-tdfa, which got a new maintainer.
IsTest’s specification with regard to exceptions
Use monotonic clock when measuring durations.
- Improve the docs
- Fix compatibility with GHC HEAD
- Prevent parsing non-positive number of threads via program options (#104)
- Buffer output to avoid slowdowns when printing test results (#101)
- Default to using the maximum number of available cores for test execution
Don't output ANSI codes for the Emacs terminal emulator
Better handle the situation when there are no ingredients to run
Split the changelog into per-project changelogs
Update to optparse-applicative 0.11
- Add the
- Introduce the
- Change the types of
TestReporterto accept the total run time
consoleTestReporternow displays the timings
- Introduce the
Upgrade to optparse-applicative-0.10.
Be careful not to export the
Show (a -> b) instance, see
Hide cursor when running tests
Fix for GHC 7.9
Remove the old 'colors' flag description from the cabal file
Make ansi-terminal an unconditional dependency
Test.Tasty.Ingredientsis now exposed
Test.Tasty.Ingredients.Basicis added, which exports the ingredients defined in the
tastypackage. These exports should now be used instead of ones exported from
Resulttype is now structured a bit differently. Providers now should use
testFailedfunctions instead of constructing
- Add «quiet mode» (see README)
- Add «hide successes» mode (see README)
- Add short command-line options:
- Add timeout support
AppMonoidis renamed to
Traversalfor consistency with the 'reducers' package. Another similar wrapper,
Ap, is introduced.
- Fix a resources bug (resources were not released if the test suite was interrupted)
- The type of
launchTestTreeis changed. It now takes a continuation as an argument. This is necessary to fix the bug mentioned above.
flagCLParserto be used as the
optionCLParserimplementation for boolean options.
- Add the ability to pass options via environment
regex-posix(which is a native implementation, and as such is more portable)
foldTestTreenow takes the algebra in the form of a record rather than multiple arguments, to minimize breakage when new nodes are added or existing ones change
withResourcenow passes the IO action to get the resource to the inner test tree
- Better handling of exceptions that arise during resource creation or disposal
- Expose the
Depend on ansi-terminal >= 0.6.1. This fixes some issues with colors on Windows.
- Make it clear that only GHC 7.4+ is supported
Add a capability to acquire and release resources. See the «Resources» section
For the end users, the API is backwards-compatible.
Test runners may have to be adjusted — there is a new constructor of
and a new argument of
Print the failure description in red
Fix a bug (#25)
The big change in this release is introduction of ingredients, which is a replacement for runners. But unless you have a custom runner, this is unlikely to affect you much.
Ingredient data type has replaced the
The following functions have been renamed and possibly changed their types:
Added in this release:
- functions operating on ingredients
listingTestsingredient and its option,
NumThreads is no longer a core option, but is automatically included in the
test reporting ingredients (see its haddock).
- Proper reporting of (some) non-terminating tests (#15)
- Upgrade to optparse-applicative 0.6
- Restrict dependency versions
- Fix a bug where non-terminating test would lead to a deadlock (#15)
- Add an
Set lower bound on optparse-applicative dependency version