From 54fc847fa5c549233269a9739ad22b8e993f1a9d Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Sat, 14 Mar 2026 07:05:34 -0400 Subject: [PATCH] Add test-one Makefile target for running individual tests `make test-one t=TestName` runs a single test by name using ponytest's --only flag. Useful for faster iteration when debugging or developing a specific test. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 245cd02..efeb282 100755 --- a/Makefile +++ b/Makefile @@ -34,6 +34,9 @@ test: unit-tests build-examples unit-tests: $(tests_binary) $^ --exclude=integration --sequential +test-one: $(tests_binary) + $^ --only="$(t)" + $(tests_binary): $(SOURCE_FILES) | $(BUILD_DIR) $(GET_DEPENDENCIES_WITH) $(PONYC) -o $(BUILD_DIR) $(SRC_DIR) @@ -63,4 +66,4 @@ all: test $(BUILD_DIR): mkdir -p $(BUILD_DIR) -.PHONY: all build-examples clean TAGS test +.PHONY: all build-examples clean TAGS test test-one