From 13030b2826d6138c2883369f8f63b43173ba2abf Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 11 Oct 2024 14:51:19 -1000 Subject: [PATCH] ;tools: just doctest: pass through doctest arg(s) --- Justfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Justfile b/Justfile index 3d92f937c..39d509cef 100644 --- a/Justfile +++ b/Justfile @@ -464,9 +464,9 @@ STACKTEST := STACK + ' test --fast' # Or, could run it with ghc 8.2: # @($STACKTEST --stack-yaml stack8.2.yaml hledger-lib:test:doctest && echo $@ PASSED) || (echo $@ FAILED; false) -# run the doctests in hledger-lib module/function docs -@doctest: - ($STACKTEST --ghc-options=-fobject-code hledger-lib:test:doctest && echo $@ PASSED) || (echo $@ FAILED; false) +# run the doctests in hledger-lib module/function docs. DOCTESTARGS is passed through but seems not too useful. +@doctest *DOCTESTARGS: + ($STACKTEST --ghc-options=-fobject-code --test-arguments="$DOCTESTARGS" hledger-lib:test:doctest && echo $@ PASSED) || (echo $@ FAILED; false) # # run the unit tests in hledger-lib # unittest: