Skip to content

Commit b777b93

Browse files
authored
Add test-one Makefile target for running individual tests (#109)
`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 2351dea commit b777b93

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
@@ -51,6 +51,9 @@ test: unit-tests examples
5151
unit-tests: $(tests_binary)
5252
$^ --exclude=integration --sequential
5353

54+
test-one: $(tests_binary)
55+
$^ --only="$(t)"
56+
5457
$(tests_binary): $(SOURCE_FILES) | $(BUILD_DIR) fetch
5558
$(PONYC) -o $(BUILD_DIR) $(SRC_DIR)
5659

@@ -84,4 +87,4 @@ all: test
8487
$(BUILD_DIR):
8588
mkdir -p $(BUILD_DIR)
8689

87-
.PHONY: all examples _build_examples clean fetch TAGS test
90+
.PHONY: all examples _build_examples clean fetch TAGS test test-one

0 commit comments

Comments
 (0)