File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ STACKTEST := STACK + ' test --fast'
463463
464464# run the doctests in hledger-lib module/function docs. DOCTESTARGS is passed through but seems not too useful.
465465@ doctest * DOCTESTARGS :
466- ($STACKTEST --ghc-options=-fobject-code --test-arguments=" $DOCTESTARGS" hledger-lib:test:doctest && echo $@ PASSED) || (echo $@ FAILED; false )
466+ ({{ STACK }} test --test-arguments=" $DOCTESTARGS" hledger-lib:test:doctest && echo $@ PASSED) || (echo $@ FAILED; false )
467467
468468# # run the unit tests in hledger-lib
469469# unittest:
@@ -479,13 +479,16 @@ SHELLTEST := STACK + ' exec -- shelltest --execdir --threads=32'
479479
480480# build hledger warning-free and run functional tests, with any shelltest OPTS. (after mktestaddons)
481481@ functest * STOPTS :
482- $ STACK build --ghc-options=-Werror hledger
482+ {{ STACK }} build --ghc-options=-Werror --test --no-run-tests hledger
483483 time (({{ SHELLTEST }} --exclude=/ _ --hide {{ if STOPTS == ' ' { ' ' } else { STOPTS } }} \
484484 hledger/ test/ bin/ \
485485 -x hledger/ test/ perf.test \
486486 -x ledger-compat/ ledger-baseline -x ledger-compat/ ledger-regress -x ledger-compat/ ledger-extra \
487487 && echo $@ PASSED) || (echo $@ FAILED; false ))
488- # too fragile
488+ # --test so that subsequent `stack test` won't recompile everything
489+ # --no-run-tests to avoid running the slow doctest suite every time
490+
491+ # too fragile:
489492# echo
490493# just perftest {{ STOPTS }}
491494
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ resolver: nightly-2025-09-30
1414
1515notify-if-ghc-untested : false
1616notify-if-cabal-untested : false
17+ notify-if-no-run-tests : false
1718
1819extra-deps :
1920# for #2410, #2512:
You can’t perform that action at this time.
0 commit comments