Fix compatibility with GHC 8.4
Backward compat breaking revision of Test.Tasty.Ingredients.ConsoleReporter
that exposes the name of tests/groups.
Expose and document several of the internals of
Test.Tasty.Ingredients.ConsoleReporter
.
Fix compatibility with GHC 7.4
--quiet
mode more efficient on a large number of testsMake filtering tests (-p
) work faster
Fix a critical bug in the quiet mode (-q
/--quiet
):
the exit status could be wrong or the test suite could hang.
Fix compatibility with the latest unbounded-delays
Add composeReporters
, a function to run multiple reporter ingredients
Introduce mkOptionCLParser
and mkFlagCLParser
Fix compatibility with optparse-applicative-0.13
Switch from regex-tdfa-rc
to regex-tdfa
, which got a new maintainer.
Clarify IsTest
’s specification with regard to exceptions
Use monotonic clock when measuring durations.
New field resultShortDescription
of Result
Export Test.Tasty.Runners.formatMessage
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
--color
optionTime
type synonymlaunchTestTree
and TestReporter
to accept the
total run timeconsoleTestReporter
now displays the timingsUpgrade to optparse-applicative-0.10.
Be careful not to export the Show (a -> b)
instance, see
https://github.com/feuerbach/tasty/issues/71
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.Ingredients
is now exposedTest.Tasty.Ingredients.Basic
is added, which exports the ingredients defined
in the tasty
package. These exports should now be used instead of ones
exported from Test.Tasty.Runners
Result
type is now structured a bit differently. Providers now should
use testPassed
and testFailed
functions instead of constructing Result
s
directly.-j
for --num-threads
, -p
for --pattern
AppMonoid
is renamed to Traversal
for consistency with the 'reducers'
package. Another similar wrapper, Ap
, is introduced.launchTestTree
is changed. It now takes a continuation as an
argument. This is necessary to fix the bug mentioned above.flagCLParser
to be used as the optionCLParser
implementation for
boolean options.regex-tdfa
instead of regex-posix
(which is a native
implementation, and as such is more portable)foldTestTree
now takes the algebra in the form of a record rather than
multiple arguments, to minimize breakage when new nodes are added or
existing ones changewithResource
now passes the IO action to get the resource to the inner test treeAppMonoid
wrapperaskOption
and inludingOptions
Depend on ansi-terminal >= 0.6.1. This fixes some issues with colors on Windows.
Result
and Progress
from Test.Tasty.Runners
Export ResourceSpec
from Test.Tasty.Runners
Add a capability to acquire and release resources. See the «Resources» section
in the Test.Tasty
docs.
For the end users, the API is backwards-compatible.
Test runners may have to be adjusted — there is a new constructor of TestTree
and a new argument of foldTestTree
.
Add defaultIngredients
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.
The Ingredient
data type has replaced the Runner
type.
The following functions have been renamed and possibly changed their types:
defaultMainWithRunner
→ defaultMainWithIngredients
treeOptionParser
→ suiteOptionParser
getTreeOptions
→ treeOptions
runUI
→ consoleTestReporter
Added in this release:
suiteOptions
optionParser
testsNames
listingTests
ingredient and its option, ListTests
NumThreads
is no longer a core option, but is automatically included in the
test reporting ingredients (see its haddock).
execRunner
functionRunner
return IO Bool
Set lower bound on optparse-applicative dependency version