Deduplicate command line options when there is more than one TestReporter.
Expose the function that does that,
Fix CPP warning/error
macro expansion producing 'defined' has undefined behavior
Automatically disable the dependency on the
clock package when compiled by ghcjs.
The only point of this release is to introduce compatibility with GHCs back to 7.0 (see https://github.com/UnkindPartition/tasty/pull/287).
Note, however, that these changes are not merged to the master branch, and the future releases will only support the GHC/base versions from the last 5 years, as per our usual policy. To test with even older GHCs, you'll have to use this particular version of tasty (or have the constraint solver pick it for you when testing with older GHCs).
The source of this release is in the
support-old-ghcs branch of the tasty
- Change the
TreeFolddata type to give all functions access to
- Fix a bug where a looping failure message escaped the time out set for the test
- Fix a bug where pattern changes inside the
- Add an ability for a test provider to print colorful/formatted output
IsOptionhas a new method
showDefaultValuefor customizing how
defaultValues are rendered in the
- Drop support for GHCs older than 5 years
- Do not install handlers for the signals that dump core
- Export the
- In addition to a
suiteOptionParsernow return a
[String]representing warning messages:
- A warning is emitted if an
IsOptioninstance defines multiple options in the implementation of
- An warning is emitted if an
optionCLParserimplementation assigns a default value (e.g., with
Options.Applicative.value), as this interferes with
tasty's ability to read environment variable arguments.
- A warning is emitted if an
- Ensure that
bracketwork as expected inside tests when the test suite is interrupted by Ctrl-C.
- Expose timed and getTime
- Add parseOptions
- Allow to disable ANSI tricks with --ansi-tricks=false
- 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/UnkindPartition/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