Skip to content

Commit adf7d4c

Browse files
committed
feat: add test and all targets to Makefile
1 parent 6b33e89 commit adf7d4c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DEFAULT_GOAL := help
2-
.PHONY: help install lint format typecheck quality
2+
.PHONY: help install lint format typecheck quality test all
33

44
# Colors (ANSI)
55
YELLOW := \033[33m
@@ -21,6 +21,8 @@ help: ## Show this help message
2121
@printf " $(GREEN)%-18s$(RESET) %s\n" "format" "Run formatters (ruff, mdformat, stylua)"
2222
@printf " $(GREEN)%-18s$(RESET) %s\n" "typecheck" "Run type checkers (Python and Lua)"
2323
@printf " $(GREEN)%-18s$(RESET) %s\n" "quality" "Run all code quality checks"
24+
@printf " $(GREEN)%-18s$(RESET) %s\n" "test" "Run Python test suite"
25+
@printf " $(GREEN)%-18s$(RESET) %s\n" "all" "Run all code quality checks and tests"
2426

2527
install: ## Install balatrobot and all dependencies (including dev)
2628
@$(PRINT) "$(YELLOW)Installing all dependencies...$(RESET)"
@@ -44,3 +46,10 @@ typecheck: ## Run type checkers (Python and Lua)
4446

4547
quality: lint typecheck format ## Run all code quality checks
4648
@$(PRINT) "$(GREEN)✓ All checks completed$(RESET)"
49+
50+
test: ## Run Python test suite
51+
@$(PRINT) "$(YELLOW)Running balatrobench tests...$(RESET)"
52+
@pytest
53+
54+
all: lint format typecheck test ## Run all code quality checks and tests
55+
@$(PRINT) "$(GREEN)✓ All checks completed$(RESET)"

0 commit comments

Comments
 (0)