This is the common changelog for the packages tasty
, tasty-smallcheck
,
tasty-quickcheck
and tasty-hunit
.
Versioning across these packages is monotonic. Multiple packages can get the same version if they are released together.
Make ansi-terminal an unconditional dependency
tasty-hunit: fix unbuildable haddock
Test.Tasty.Ingredients
is now exposedTest.Tasty.Ingredients.Basic
is added, which exports the ingredients defined in thetasty
package. These exports should now be used instead of ones exported fromTest.Tasty.Runners
- The
Result
type is now structured a bit differently. Providers now should usetestPassed
andtestFailed
functions instead of constructingResult
s directly. - Add «quiet mode» (see README)
- Add «hide successes» mode (see README)
- Add short command-line options:
-j
for--num-threads
,-p
for--pattern
- Add timeout support
- hunit: exceptions are now handled by tasty rather than by HUnit
AppMonoid
is renamed toTraversal
for 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
launchTestTree
is changed. It now takes a continuation as an argument. This is necessary to fix the bug mentioned above. - Add
flagCLParser
to be used as theoptionCLParser
implementation for boolean options. - Add the ability to pass options via environment
- Use
regex-tdfa
instead ofregex-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 tree
- Better handling of exceptions that arise during resource creation or disposal
- Expose the
AppMonoid
wrapper - Add
askOption
andinludingOptions
Depend on ansi-terminal >= 0.6.1. This fixes some issues with colors on Windows.
- Export
Result
andProgress
fromTest.Tasty.Runners
- Make it clear that only GHC 7.4+ is supported
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
tasty-hunit: do not re-export HUnit's Testable
class
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
- functions operating on ingredients
testsNames
- the
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).
- Proper reporting of (some) non-terminating tests (#15)
- Upgrade to optparse-applicative 0.6
- QuickCheck: use the original QuickCheck's output format
- Restrict dependency versions
- Fix a bug where non-terminating test would lead to a deadlock (#15)
- QuickCheck: add options for maximum size and maximum ratio; support replay.
- Add an
execRunner
function - Make
Runner
returnIO Bool
- Re-export useful bits of
Test.QuickCheck
fromTest.Tasty.QuickCheck
(and the same for SmallCheck and HUnit)
Set lower bound on optparse-applicative dependency version