From e79c58882a211c460d19b8f115470ec79ba250aa Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 17 Aug 2018 09:37:09 +0100 Subject: [PATCH] tools: make ghcid-test-TESTPATTERN: run only some tests via ghcid --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 33fead663..344b2f45f 100644 --- a/Makefile +++ b/Makefile @@ -565,6 +565,9 @@ ghcid-api: $(call def-help,ghcid-api, start ghcid autobuilder on hledger-lib + h ghcid-test: $(call def-help,ghcid-test, start ghcid autobuilding and running the test command) ghcid -c 'make ghci' --test ':main test' +ghcid-test-%: $(call def-help,ghcid-test-TESTPATTERN, start ghcid autobuilding and running the test command with the given TESTPATTERN) + ghcid -c 'make ghci' --test ':main test $*' + ghcid-doctest: $(call def-help,ghcid-doctest, start ghcid autobuilding and running hledger-lib doctests) ghcid -c 'cd hledger-lib; $(STACK) ghci hledger-lib:test:doctests' --test ':main' --reload hledger-lib