Add 'doctest' as a cabal test

We provide a simple wrapper that executes `doctest` on our `src`
directory. This allows us to run all doctests during a regular `cabal
test` run.
This commit is contained in:
Alexander Kobjolke 2023-08-29 21:07:33 +02:00
parent 48f054df37
commit a761e242a4
3 changed files with 27 additions and 7 deletions

View file

@ -56,9 +56,10 @@ tests:
build-tools: hspec-discover
verbatim:
default-language: GHC2021
# doctest:
# main: Doctest.hs
# source-dirs:
# - test/doctest
# dependencies:
# - process
doctest:
main: Doctest.hs
source-dirs:
- test/doctest
dependencies:
- process
build-tools: doctest