Skip to content

Commit dceb439

Browse files
authored
Add test-one Makefile target for running individual tests (#40)
`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.
1 parent 26134c5 commit dceb439

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ test: unit-tests build-examples
3434
unit-tests: $(tests_binary)
3535
$^ --exclude=integration --sequential
3636

37+
test-one: $(tests_binary)
38+
$^ --only="$(t)"
39+
3740
$(tests_binary): $(SOURCE_FILES) | $(BUILD_DIR)
3841
$(GET_DEPENDENCIES_WITH)
3942
$(PONYC) -o $(BUILD_DIR) $(SRC_DIR)
@@ -63,4 +66,4 @@ all: test
6366
$(BUILD_DIR):
6467
mkdir -p $(BUILD_DIR)
6568

66-
.PHONY: all build-examples clean TAGS test
69+
.PHONY: all build-examples clean TAGS test test-one

0 commit comments

Comments
 (0)