- Add support for GHC 9.10
- Add support for GHC 9.8
- Drop support for GHC 8.2
- Add
--ghc-arg
as a command line argument, allowing users to pass additional arguments to GHC used to parse Haddock.
- Add support for GHC 9.6
- Add support for Nix shell environments (#58)
Language.Haskell.GhciWrapper
has been moved toTest.DocTest.Internal.GhciWrapper
. This module was never intended to be part of the public API. (#61)- Add more elaborate debug options. You can now pass
--log-level=LEVEL
wherelevel
is one ofdebug
,verbose
,info
,warning
, orerror
. (#14)
getNumProcessors
is now used to detect the (default) number of GHCi subprocesses to spawn. This should more reliably use all of a system's resources. Fixes #53.- Add Nix support. If the environment variable
NIX_BUILD_TOP
is present an extra package database is added toGHC_PACKAGE_PATH
. This isn't expected to break existing builds, but if it does consider passing--no-nix
. (#34) - The QuickCheck example mentioned in the README now uses
abs
instead ofsort
. This prevents confusing errors whensort
is not imported. Fixes #50.
- Loosen Cabal bounds to >= 2.4 && < 3.9
- Add support for GHC 9.4 (#43)
- Conditionals in Cabal files are now solved (#35). Thanks to @philderbeast for the report and contributions.
- Unexpected outputs in
$setup
blocks are no longer ignored (#39)
- Command line arguments (such as
--randomize-order
) can now be overridden on a per-module basis (#25) - Implicit pre-test module imports can now be disabled using
--no-implicit-module-import
. This can help to test functions from non-exposed modules (#26) runModule
does not swallow import errors anymore (#28)autogen-modules
are not searched for tests anymore (#30)
- C include directories (Cabal field:
include-dirs
) are now passed to GHC when parsing source files (#7) - A migration guide has been added (#11)
- Test order can be randomized using
--randomize-order
. Test order can be made deterministic by adding an optional--seed=N
argument (#12) - Any non-error output can now be surpressed by
--quiet
(#20) - Doctest can now be called using a record for option passing in addition to command line arguments. See
mainFromCabalWithConfig
andmainFromLibraryWithConfig
.
Changes:
- Support for GHC 9.2 has been added (#4)
- Support for GHC 8.2 has been dropped (#3)
- The dependency
cabal-install-parsers
has been dropped. This trims the dependency tree quite a bit (#3) - The Hackage distribution now ships all files necessary to run
doctest-parallel
's tests (Fixes #1, PR #2)
Fresh fork from sol/doctest
. See the README for an overview of all the changes.